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-24 06:16:12 +0200
commit06229fc8fac4d1285e4c6ab85347c2ff7761f1e2 (patch)
tree8132dda7c504eb3ef1b63ddb7fe20250e30e870f
parentAdd full trace (diff)
downloadserver-ts-06229fc8fac4d1285e4c6ab85347c2ff7761f1e2.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) {