this is not rust....
This commit is contained in:
parent
d416e62d65
commit
6e53a1e40a
1 changed files with 2 additions and 2 deletions
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…
Reference in a new issue