Clean up outdated todo

This commit is contained in:
Rory&
2026-07-17 14:19:17 +02:00
parent 5a949c9b69
commit 3a4a17679c
2 changed files with 2 additions and 2 deletions
@@ -21,6 +21,7 @@ import { HTTPError } from "lambert-server/HTTPError";
import { route } from "@spacebar/api/util/handlers/route";
import { Channel, Message } from "@spacebar/database";
import { Config, emitEvent, getPermission, getRights, MessageDeleteBulkEvent } from "@spacebar/util";
import { In } from "typeorm";
const router: Router = Router({ mergeParams: true });
@@ -64,7 +65,7 @@ router.post(
if (messages.length > maxBulkDelete) throw new HTTPError(`You cannot delete more than ${maxBulkDelete} messages`);
}
await Message.delete(messages);
await Message.delete({ id: In(messages), channel_id: channel_id });
await emitEvent({
event: "MESSAGE_DELETE_BULK",
@@ -50,7 +50,6 @@ router.get(
return;
}
// TODO: emojis can be owned by applications these days, account for this when we get there?
if (emoji.guild_id)
res.json({
type: "GUILD",