From 7cf8c6845939e70c0fbdd8784d5273907593228a Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Tue, 5 Dec 2023 11:10:12 -0500 Subject: typingstart timestamp needs to be seconds --- src/api/routes/channels/#channel_id/typing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/channels/#channel_id/typing.ts b/src/api/routes/channels/#channel_id/typing.ts index b5d61d74..90e78175 100644 --- a/src/api/routes/channels/#channel_id/typing.ts +++ b/src/api/routes/channels/#channel_id/typing.ts @@ -35,7 +35,7 @@ router.post( async (req: Request, res: Response) => { const { channel_id } = req.params; const user_id = req.user_id; - const timestamp = Date.now(); + const timestamp = Date.nowSeconds(); const channel = await Channel.findOneOrFail({ where: { id: channel_id }, }); -- cgit 1.4.1