Skip to content

Commit

Permalink
logs(functions): add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pchmn committed Aug 4, 2023
1 parent 5398e7b commit 0a9cf16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/functions/src/fns/send-message/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const nhost = new NhostClient({

export const handler = async (event: APIGatewayEvent, context: Context): Promise<APIGatewayProxyResult> => {
const { currentToken, body } = validateRequest('sendMessage', event, context);
console.log('PARAMS\n', JSON.stringify({ currentToken, body }, null, 2));

const { data: sender } = await nhost.graphql.request<{ kuzers_by_pk: Kuzer }>(SELECT_KUZER_BY_ID, {
id: currentToken.userId,
Expand Down

0 comments on commit 0a9cf16

Please sign in to comment.