From 0a9cf1626cb538024821848199167842cd6baa0b Mon Sep 17 00:00:00 2001 From: pchmn Date: Sat, 5 Aug 2023 01:31:08 +0200 Subject: [PATCH] logs(functions): add some logs --- apps/functions/src/fns/send-message/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/functions/src/fns/send-message/index.ts b/apps/functions/src/fns/send-message/index.ts index 6eaa064..ca2e4c3 100644 --- a/apps/functions/src/fns/send-message/index.ts +++ b/apps/functions/src/fns/send-message/index.ts @@ -33,6 +33,7 @@ const nhost = new NhostClient({ export const handler = async (event: APIGatewayEvent, context: Context): Promise => { 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,