this is not rust....

This commit is contained in:
asyncnomi 2023-01-01 19:27:49 +01:00
parent d416e62d65
commit 6e53a1e40a

View file

@ -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] = {