mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix changing autoproxy settings with no system_guild row
This commit is contained in:
parent
2e8d044ca5
commit
50b5a8fbee
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ namespace PluralKit.Bot
|
|||
private Task UpdateAutoproxy(Context ctx, AutoproxyMode autoproxyMode, MemberId? autoproxyMember) =>
|
||||
_db.Execute(c =>
|
||||
c.ExecuteAsync(
|
||||
"update system_guild set autoproxy_mode = @autoproxyMode, autoproxy_member = @autoproxyMember where guild = @guild and system = @system",
|
||||
"insert into system_guild (system, guild, autoproxy_mode, autoproxy_member) values (@system, @guild, @autoproxyMode, @autoproxyMember) on conflict (system, guild) do update set autoproxy_mode = @autoproxyMode, autoproxy_member = @autoproxyMember",
|
||||
new {autoproxyMode, autoproxyMember, guild = ctx.Guild.Id, system = ctx.System.Id}));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue