needs to be async

This commit is contained in:
Erkin Alp Güney
2022-04-28 21:38:39 +03:00
parent 2e451d8fd0
commit f09daaa3de
3 changed files with 6 additions and 5 deletions
@@ -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 )