logical error
This commit is contained in:
parent
12a549f7f2
commit
542d88437d
1 changed files with 1 additions and 1 deletions
2
index.js
2
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] = {
|
||||
|
|
Loading…
Reference in a new issue