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
commitf09daaa3de902641ca9772089b8af676e05543c3 (patch)
tree28abed32876d428884cfd8df93db61a2e425a9c3 /api/src/routes
parentexempt users logic (diff)
downloadserver-f09daaa3de902641ca9772089b8af676e05543c3.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 )