diff --git a/src/data/AllowedGuilds.ts b/src/data/AllowedGuilds.ts index 78a701f6..a96cf814 100644 --- a/src/data/AllowedGuilds.ts +++ b/src/data/AllowedGuilds.ts @@ -39,7 +39,7 @@ export class AllowedGuilds extends BaseRepository { .getMany(); } - updateInfo(id, name, icon) { - return this.allowedGuilds.update({ id }, { name, icon }); + updateInfo(id, name, icon, ownerId) { + return this.allowedGuilds.update({ id }, { name, icon, owner_id: ownerId }); } } diff --git a/src/data/entities/AllowedGuild.ts b/src/data/entities/AllowedGuild.ts index 3c3e983f..aa8ebba5 100644 --- a/src/data/entities/AllowedGuild.ts +++ b/src/data/entities/AllowedGuild.ts @@ -11,4 +11,7 @@ export class AllowedGuild { @Column() icon: string; + + @Column() + owner_id: string; } diff --git a/src/plugins/GuildInfoSaver.ts b/src/plugins/GuildInfoSaver.ts index b89dc508..9c1108c4 100644 --- a/src/plugins/GuildInfoSaver.ts +++ b/src/plugins/GuildInfoSaver.ts @@ -19,6 +19,6 @@ export class GuildInfoSaverPlugin extends ZeppelinPlugin { } protected updateGuildInfo() { - this.allowedGuilds.updateInfo(this.guildId, this.guild.name, this.guild.iconURL); + this.allowedGuilds.updateInfo(this.guildId, this.guild.name, this.guild.iconURL, this.guild.ownerID); } }