From 6e53a1e40a30b20fe925a0e1a1f085af7ac54275 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sun, 1 Jan 2023 19:27:49 +0100 Subject: [PATCH] this is not rust.... --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 77a2f19..633c1b6 100644 --- a/index.js +++ b/index.js @@ -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] = {