🐛 fix typing
This commit is contained in:
@@ -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) });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user