From 91361ea9c6d4734805adc5298e0b868d200ce4d0 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 30 Apr 2025 22:18:42 -0500 Subject: [PATCH] fix another stupid bug --- src/api/routes/guilds/#guild_id/channels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index bcf6ae27..a2add70f 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -170,7 +170,7 @@ router.patch( channel.position = (parentPos + 1) as number; } channel.parent = parent || undefined; - channel.parent_id = null; + channel.parent_id = parent?.id || null; await channel.save(); await emitEvent({