1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 10:52:31 +01:00

channel.owner_id is type string not number

This commit is contained in:
Madeline 2022-01-15 18:44:04 +11:00 committed by Erkin Alp Güney
parent 14a4321c0f
commit c3f947a269

View File

@ -311,7 +311,7 @@ export class Channel extends BaseClass {
//If the owner leave the server user is the new owner //If the owner leave the server user is the new owner
if (channel.owner_id === user_id) { 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({ await emitEvent({
event: "CHANNEL_UPDATE", event: "CHANNEL_UPDATE",
data: await DmChannelDTO.from(channel, [user_id]), data: await DmChannelDTO.from(channel, [user_id]),