From 9b03368276c403653af824d7551cb9ad72917d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 25 Jul 2023 16:26:37 +0200 Subject: [PATCH] Fix wrong async --- .../middleware/notifications/mentions/extractMentionedUsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts index b4ec9fb87..d875c4ed2 100644 --- a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts +++ b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts @@ -23,7 +23,7 @@ export const queryAllUserIds = async (context, offset = -1, pageSize = -1) => { } } -export const extractMentionedUsers = async (content?) => { +export const extractMentionedUsers = (content?) => { if (!content) return [] const $ = cheerio.load(content) const userIds = $('a.mention[data-mention-id]')