🐛 fix typing

This commit is contained in:
Flam3rboy
2021-10-09 14:00:28 +02:00
parent 77aab2bdd3
commit 83332fab42
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -98,7 +98,6 @@ router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Re
}
}
console.log("register", body.email, body.username, ip);
// TODO: gift_code_sku_id?
// TODO: check password strength
@@ -168,6 +167,8 @@ router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Re
await Invite.joinGuild(user.id, body.invite);
}
console.log("register", body.email, body.username, ip);
return res.json({ token: await generateToken(user.id) });
});