typingstart timestamp needs to be seconds

This commit is contained in:
Puyodead1 2023-12-05 11:10:12 -05:00
parent 26e3b47f4f
commit 7cf8c68459
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -35,7 +35,7 @@ router.post(
async (req: Request, res: Response) => { async (req: Request, res: Response) => {
const { channel_id } = req.params; const { channel_id } = req.params;
const user_id = req.user_id; const user_id = req.user_id;
const timestamp = Date.now(); const timestamp = Date.nowSeconds();
const channel = await Channel.findOneOrFail({ const channel = await Channel.findOneOrFail({
where: { id: channel_id }, where: { id: channel_id },
}); });