fix another stupid bug

This commit is contained in:
MathMan05 2025-04-30 22:18:42 -05:00 committed by Rory&
parent 1550ccd099
commit 91361ea9c6

View File

@ -170,7 +170,7 @@ router.patch(
channel.position = (parentPos + 1) as number; channel.position = (parentPos + 1) as number;
} }
channel.parent = parent || undefined; channel.parent = parent || undefined;
channel.parent_id = null; channel.parent_id = parent?.id || null;
await channel.save(); await channel.save();
await emitEvent({ await emitEvent({