summary refs log tree commit diff
path: root/api/src/routes
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-28 21:38:39 +0300
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-04-28 21:38:39 +0300
commite1399b2875b98c997aa51fc2196a99910248523e (patch)
treec0b28008890a55c483c03d0ed18701fa34d81bb3 /api/src/routes
parentexempt users logic (diff)
downloadserver-e1399b2875b98c997aa51fc2196a99910248523e.tar.xz
needs to be async
Diffstat (limited to 'api/src/routes')
-rw-r--r--api/src/routes/channels/#channel_id/messages/#message_id/index.ts2
1 files changed, 1 insertions, 1 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 958954b6..63fee9b9 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
@@ -95,7 +95,7 @@ router.put(
 		var body = req.body as MessageCreateSchema;
 		const attachments: Attachment[] = [];
 		
-		const rights = getRights(req.user_id);
+		const rights = await getRights(req.user_id);
 		rights.hasThrow("SEND_MESSAGES");
 
 		// regex to check if message contains anything other than numerals ( also no decimals )