diff --git a/PluralKit.Core/Services/PostgresDataStore.cs b/PluralKit.Core/Services/PostgresDataStore.cs index 4d1e2165..a90a1f97 100644 --- a/PluralKit.Core/Services/PostgresDataStore.cs +++ b/PluralKit.Core/Services/PostgresDataStore.cs @@ -346,7 +346,7 @@ namespace PluralKit.Core { memberObjects = ( await conn.QueryAsync( "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); }