...
This commit is contained in:
asyncnomi 2023-01-03 20:32:14 +01:00
parent 875a43e677
commit 46d2ad6dc5

View file

@ -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