|
|
|
@ -71,7 +71,7 @@ fastify.post('/login', async (request, reply) => { |
|
|
|
user: { |
|
|
|
uid: res.authUser.uid, |
|
|
|
givenName: res.authUser.givenName, |
|
|
|
isAdmin: AdminUsersUid.contains(res.authUser.uid) |
|
|
|
isAdmin: AdminUsersUid.includes(res.authUser.uid) |
|
|
|
}, |
|
|
|
token: UsersToken[res.authUser.uid].token |
|
|
|
} |
|
|
|
@ -118,7 +118,7 @@ fastify.post('/addPrank', async (request, reply) => { |
|
|
|
&& "supplement" in content) { |
|
|
|
let amount = parseInt(content.amount) |
|
|
|
if (!isNaN(amount)) { |
|
|
|
if (!Supplements.contains(content.supplement)) { |
|
|
|
if (!Supplements.includes(content.supplement)) { |
|
|
|
if (amount < MaxAmountCrepe) { |
|
|
|
let prankUid = makeid(16); |
|
|
|
PrankData[prankUid] = { |
|
|
|
|