send the real index

This commit is contained in:
MathMan05 2025-05-02 11:35:07 -05:00 committed by Rory&
parent e219c1a33a
commit f03c6209a4

View File

@ -146,8 +146,8 @@ router.patch(
where: { id: opt.id },
});
channel.position = opt.position as number;
notMentioned.splice(opt.position as number, 0, channel.id);
channel.position = notMentioned.findIndex((_) => _ === channel.id);
await emitEvent({
event: "CHANNEL_UPDATE",