mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-18 15:35:38 +00:00
channel.owner_id is type string not number
This commit is contained in:
committed by
Erkin Alp Güney
parent
d6f5a08cb5
commit
0a53860645
@@ -311,7 +311,7 @@ export class Channel extends BaseClass {
|
||||
|
||||
//If the owner leave the server user is the new owner
|
||||
if (channel.owner_id === user_id) {
|
||||
channel.owner_id = 1; // The channel is now owned by the server user
|
||||
channel.owner_id = "1"; // The channel is now owned by the server user
|
||||
await emitEvent({
|
||||
event: "CHANNEL_UPDATE",
|
||||
data: await DmChannelDTO.from(channel, [user_id]),
|
||||
|
||||
Reference in New Issue
Block a user