GuildInfoSaver: also update owner id
This commit is contained in:
parent
4cf58bd9f5
commit
d80bc54635
3 changed files with 6 additions and 3 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,7 @@ export class AllowedGuild {
|
|||
|
||||
@Column()
|
||||
icon: string;
|
||||
|
||||
@Column()
|
||||
owner_id: string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue