diff options
author | Puyodead1 <puyodead@proton.me> | 2023-12-05 11:10:12 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-12-05 11:10:12 -0500 |
commit | 7cf8c6845939e70c0fbdd8784d5273907593228a (patch) | |
tree | c06b8eae27b322a2364f48da681ebb4a5ff6bedc | |
parent | Merge pull request #1103 from spacebarchat/patch/api-compat (diff) | |
download | server-7cf8c6845939e70c0fbdd8784d5273907593228a.tar.xz |
typingstart timestamp needs to be seconds
-rw-r--r-- | src/api/routes/channels/#channel_id/typing.ts | 2 |
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 }, }); |