From 46d2ad6dc59a762e58631c86b0f258c0a1d79be4 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 3 Jan 2023 20:32:14 +0100 Subject: [PATCH] ... ... --- index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 61264f1..ec44ad7 100644 --- a/index.js +++ b/index.js @@ -134,7 +134,7 @@ fastify.post('/addPrank', async (request, reply) => { } saveData(prankPath, PrankData); return { - sucess: true, + success: true, uid: prankUid, prank: PrankData[prankUid] } @@ -178,7 +178,7 @@ fastify.post('/addPrank', async (request, reply) => { } saveData(prankPath, PrankData); return { - sucess: true, + success: true, uid: prankUid, prank: PrankData[prankUid] } @@ -293,7 +293,7 @@ fastify.post('/get', async (request, reply) => { case "prank": if (AdminUsersUid.includes(content.uid)) { return { - sucess: true, + success: true, prankData: PrankData } } else { @@ -311,7 +311,7 @@ fastify.post('/get', async (request, reply) => { break; case "activity": return { - sucess: true, + success: true, activityData: ActivityData } break; @@ -322,7 +322,7 @@ fastify.post('/get', async (request, reply) => { } if (AdminUsersUid.includes(content.uid)) { return { - sucess: true, + success: true, treasureData: treasureData } } else { @@ -387,7 +387,7 @@ fastify.post('/addActivity', async (request, reply) => { } saveData(activityPath, ActivityData); return { - sucess: true, + success: true, uid: activityUid, activity: ActivityData[activityUid] } @@ -409,7 +409,7 @@ fastify.post('/addActivity', async (request, reply) => { } saveData(activityPath, ActivityData); return { - sucess: true, + success: true, uid: activityUid, activity: ActivityData[activityUid] } @@ -588,7 +588,7 @@ fastify.post('/isGolden', async (request, reply) => { } } return { - sucess: false + success: false } } else { return auth