From 7bd3aa4bb0a3989db920a5fdabfccaa7d9b42275 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sat, 7 Jan 2023 14:53:47 +0100 Subject: [PATCH 1/2] bla --- index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.js b/index.js index 9c3bf9f..370466b 100644 --- a/index.js +++ b/index.js @@ -350,6 +350,18 @@ fastify.post('/get', async (request, reply) => { why: "Missing type" } } + } else if ("type" in content) { + switch (type) { + case "activity": + return { + success: true, + activityData: ActivityData + } + break; + default: + return auth; + break; + } } else { return auth } From 62e031e63a83b79f9aa7b34eb624918f8bdbeb3e Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sat, 7 Jan 2023 15:11:25 +0100 Subject: [PATCH 2/2] bla --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 370466b..81a8d51 100644 --- a/index.js +++ b/index.js @@ -351,7 +351,7 @@ fastify.post('/get', async (request, reply) => { } } } else if ("type" in content) { - switch (type) { + switch (content.type) { case "activity": return { success: true,