mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-25 17:03:18 +00:00
fix the conditional
This commit is contained in:
1 parent
1b087b134a
commit
67011ccc3d
1 file changed
+1
-1
@@ -212,7 +212,7 @@ export class Channel extends BaseClass {
|
||||
...channel,
|
||||
...(!opts?.keepId && { id: Snowflake.generate() }),
|
||||
created_at: new Date(),
|
||||
position: ((channel.type === ChannelType.UNHANDLED) || channel.position) || 0,
|
||||
position: (channel.type === ChannelType.UNHANDLED ? 0 : channel.position) || 0,
|
||||
};
|
||||
|
||||
await Promise.all([
|
||||
|
||||
Reference in new issue
Block a user