Browse Source

this is not rust....

master
asyncnomi 3 years ago
parent
commit
6e53a1e40a
  1. 4
      index.js

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

Loading…
Cancel
Save