From 23e637e09830694ada054e61f1b8349878e8de7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 25 Jul 2023 16:24:42 +0200 Subject: [PATCH] Cleanup --- .../middleware/notifications/mentions/extractMentionedUsers.ts | 2 -- backend/src/middleware/notifications/notificationsMiddleware.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts index 6d7333710..b4ec9fb87 100644 --- a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts +++ b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts @@ -25,7 +25,6 @@ export const queryAllUserIds = async (context, offset = -1, pageSize = -1) => { export const extractMentionedUsers = async (content?) => { if (!content) return [] - console.log('extractMentionedUsers – content: ', content) const $ = cheerio.load(content) const userIds = $('a.mention[data-mention-id]') .map((_, el) => { @@ -35,6 +34,5 @@ export const extractMentionedUsers = async (content?) => { .map((id) => id.trim()) .filter((id) => !!id) .filter((id, index, allIds) => allIds.indexOf(id) === index) - console.log('extractMentionedUsers – userIds: ', userIds) return userIds } diff --git a/backend/src/middleware/notifications/notificationsMiddleware.ts b/backend/src/middleware/notifications/notificationsMiddleware.ts index b33cd05cb..183134499 100644 --- a/backend/src/middleware/notifications/notificationsMiddleware.ts +++ b/backend/src/middleware/notifications/notificationsMiddleware.ts @@ -62,7 +62,6 @@ const notifyPublishUsersOfMentionInclAll = async (label, id, idsOfUsers, reason, let pageOfUserIds = await queryAllUserIds(context, offset, pageSize) while (pageOfUserIds.length > 0) { - console.log('handleContentDataOfPost – on @all – idsOfUsers: ', pageOfUserIds) await publishNotifications(context, [ notifyUsersOfMention(label, id, pageOfUserIds, reason, context), ])