summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-05-22 19:26:12 +0200
committerRory& <root@rory.gay>2026-05-26 07:48:10 +0200
commit6098a03be40ef6388970d62a7481e29e38f7cc23 (patch)
tree28935d6d56ca818d315bed4853d33f2fff118c02
parentAdd full trace (diff)
downloadserver-ts-6098a03be40ef6388970d62a7481e29e38f7cc23.tar.xz
Use forEach rather than .map.forEach
-rw-r--r--src/api/util/handlers/Message.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index 52106d10..9d994850 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) {