mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
fix the conditional
This commit is contained in:
parent
02f3b253fd
commit
ea0fbf12fb
@ -212,7 +212,7 @@ export class Channel extends BaseClass {
|
|||||||
...channel,
|
...channel,
|
||||||
...(!opts?.keepId && { id: Snowflake.generate() }),
|
...(!opts?.keepId && { id: Snowflake.generate() }),
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
position: ((channel.type === ChannelType.UNHANDLED) || channel.position) || 0,
|
position: (channel.type === ChannelType.UNHANDLED ? 0 : channel.position) || 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
Loading…
Reference in New Issue
Block a user