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,