summary refs log tree commit diff
path: root/api/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-17 22:57:30 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-17 22:57:30 +0200
commitbf8718489e83dc3365073d5ee0b4611813a482bb (patch)
tree7afca77ecd3e21344407f88467a1f86567ba020f /api/src/routes
parent:art: clean up (diff)
downloadserver-bf8718489e83dc3365073d5ee0b4611813a482bb.tar.xz
fix #199
Diffstat (limited to 'api/src/routes')
-rw-r--r--api/src/routes/channels/#channel_id/messages/#message_id/index.ts4
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()
 	});