summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2025-05-02 11:35:07 -0500
committerRory& <root@rory.gay>2025-05-28 08:46:35 +0200
commitf03c6209a42ae3e922bdb86954de04f1ae6daaa8 (patch)
tree200d99381024c9f51b0c21151ac04eb7ea4f51d1 /src/api
parentcode relies on things done in a certain order (diff)
downloadserver-ts-f03c6209a42ae3e922bdb86954de04f1ae6daaa8.tar.xz
send the real index
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/guilds/#guild_id/channels.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts

index 0160641ad..8f8ee3af6 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts
@@ -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",