From 6098a03be40ef6388970d62a7481e29e38f7cc23 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 22 May 2026 19:26:12 +0200 Subject: [PATCH] Use forEach rather than .map.forEach --- src/api/util/handlers/Message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 52106d100..9d9948506 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -823,7 +823,7 @@ async function handleMessageMentionsAsync(message: Message) { trace.calls.push("getUsers", { micros: sw.getElapsedAndReset().totalMicroseconds }); if (mention_here) { const ids = (await Member.find({ where: { guild_id: channel.guild_id } })).map((m) => m.id); - (await Session.find({ where: { user_id: In(ids) } })).map((s) => s.user_id).forEach(users.add); + (await Session.find({ where: { user_id: In(ids) } })).forEach((s) => users.add(s.user_id)); trace.calls.push("mentionHere", { micros: sw.getElapsedAndReset().totalMicroseconds }); } if (users.size) {