mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
Fix front percent lookup
Dapper can't map lists of ID types in an input position so we select it to a plain ulong list :)
This commit is contained in:
parent
4ac6465648
commit
3b47785aa0
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ namespace PluralKit.Core {
|
||||||
memberObjects = (
|
memberObjects = (
|
||||||
await conn.QueryAsync<PKMember>(
|
await conn.QueryAsync<PKMember>(
|
||||||
"select * from members where id = any(@Switches)", // lol postgres specific `= any()` syntax
|
"select * from members where id = any(@Switches)", // lol postgres specific `= any()` syntax
|
||||||
new { Switches = switchMembers.Select(m => m.Member).Distinct().ToList() })
|
new { Switches = switchMembers.Select(m => m.Member.Value).Distinct().ToList() })
|
||||||
).ToDictionary(m => m.Id);
|
).ToDictionary(m => m.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue