1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-14 06:32:36 +01:00

Merge pull request #429 from fosscord/dev

🐛 fix typing
This commit is contained in:
Flam3rboy 2021-10-09 14:09:50 +02:00 committed by GitHub
commit d8733131b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

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: gift_code_sku_id?
// TODO: check password strength // 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); await Invite.joinGuild(user.id, body.invite);
} }
console.log("register", body.email, body.username, ip);
return res.json({ token: await generateToken(user.id) }); return res.json({ token: await generateToken(user.id) });
}); });

View File

@ -9,7 +9,7 @@ router.post("/", route({ permission: "SEND_MESSAGES" }), async (req: Request, re
const user_id = req.user_id; const user_id = req.user_id;
const timestamp = Date.now(); const timestamp = Date.now();
const channel = await Channel.findOneOrFail({ id: channel_id }); const channel = await Channel.findOneOrFail({ id: channel_id });
const member = await Member.findOneOrFail({ where: { id: user_id }, relations: ["roles"] }); const member = await Member.findOneOrFail({ where: { id: user_id }, relations: ["roles", "user"] });
await emitEvent({ await emitEvent({
event: "TYPING_START", event: "TYPING_START",