diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-28 21:38:39 +0300 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-28 21:38:39 +0300 |
commit | f09daaa3de902641ca9772089b8af676e05543c3 (patch) | |
tree | 28abed32876d428884cfd8df93db61a2e425a9c3 /api/src/routes | |
parent | exempt users logic (diff) | |
download | server-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.ts | 2 |
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 ) |