From 542d88437d331e02d0946b1ac5fd70f6ce5c0399 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 3 Jan 2023 23:25:48 +0100 Subject: [PATCH] logical error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ec44ad7..11bdd1b 100644 --- a/index.js +++ b/index.js @@ -118,7 +118,7 @@ fastify.post('/addPrank', async (request, reply) => { && "supplement" in content) { let amount = parseInt(content.amount) if (!isNaN(amount)) { - if (!Supplements.includes(content.supplement)) { + if (Supplements.includes(content.supplement)) { if (amount < MaxAmountCrepe) { let prankUid = makeid(16); PrankData[prankUid] = {