diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-17 22:57:30 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-17 22:57:30 +0200 |
commit | bf8718489e83dc3365073d5ee0b4611813a482bb (patch) | |
tree | 7afca77ecd3e21344407f88467a1f86567ba020f /api/src/routes | |
parent | :art: clean up (diff) | |
download | server-bf8718489e83dc3365073d5ee0b4611813a482bb.tar.xz |
fix #199
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/#message_id/index.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/#message_id/index.ts b/api/src/routes/channels/#channel_id/messages/#message_id/index.ts index 3c58d034..6337a1b7 100644 --- a/api/src/routes/channels/#channel_id/messages/#message_id/index.ts +++ b/api/src/routes/channels/#channel_id/messages/#message_id/index.ts @@ -23,9 +23,7 @@ router.patch("/", check(MessageCreateSchema), async (req: Request, res: Response const opts = await handleMessage({ ...body, - author_id: message.author_id, - channel_id, - id: message_id, + ...message, edited_timestamp: new Date() }); |