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