summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2025-04-30 15:17:45 -0500
committerRory& <root@rory.gay>2025-05-28 08:46:35 +0200
commita4c50ae922e018227c731c0ff9895159546e9b6a (patch)
tree143d9ff78e56d1a8314b2f25a9f22d1f821557d7 /src/api
parentfix moving channels (diff)
downloadserver-ts-a4c50ae922e018227c731c0ff9895159546e9b6a.tar.xz
forgot to test on rebuild
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/guilds/#guild_id/channels.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts

index 5b07ae81..179128eb 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts
@@ -163,6 +163,8 @@ router.patch( const parentPos = notMentioned.indexOf(parent.id); notMentioned.splice(parentPos + 1, 0, channel.id); channel.position = (parentPos + 1) as number; + channel.parent = parent; + await channel.save(); await emitEvent({ event: "CHANNEL_UPDATE",