summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-05 11:10:12 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-05 11:10:12 -0500
commit7cf8c6845939e70c0fbdd8784d5273907593228a (patch)
treec06b8eae27b322a2364f48da681ebb4a5ff6bedc
parentMerge pull request #1103 from spacebarchat/patch/api-compat (diff)
downloadserver-7cf8c6845939e70c0fbdd8784d5273907593228a.tar.xz
typingstart timestamp needs to be seconds
-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 }, });