summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/api/routes/channels/#channel_id/typing.ts2
1 files changed, 1 insertions, 1 deletions
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 },
 		});