Fix system guild helper method (again?)
This commit is contained in:
parent
447b986706
commit
4ac6465648
@ -18,7 +18,7 @@ namespace PluralKit.Core
|
|||||||
|
|
||||||
public static Task<SystemGuildSettings> QueryOrInsertSystemGuildConfig(this IPKConnection conn, ulong guild, SystemId system) =>
|
public static Task<SystemGuildSettings> QueryOrInsertSystemGuildConfig(this IPKConnection conn, ulong guild, SystemId system) =>
|
||||||
conn.QueryFirstAsync<SystemGuildSettings>(
|
conn.QueryFirstAsync<SystemGuildSettings>(
|
||||||
"insert into member_guild (guild, member) values (@guild, @member) on conflict (guild, member) do update set guild = @guild, member = @member returning *",
|
"insert into system_guild (guild, system) values (@guild, @system) on conflict (guild, system) do update set guild = @guild, system = @system returning *",
|
||||||
new {guild, system});
|
new {guild, system});
|
||||||
|
|
||||||
public static Task<MemberGuildSettings> QueryOrInsertMemberGuildConfig(
|
public static Task<MemberGuildSettings> QueryOrInsertMemberGuildConfig(
|
||||||
|
Loading…
Reference in New Issue
Block a user