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