From b371c2f34db73ea8ee92732014b2e01a20485eaa Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 25 Jan 2020 16:42:45 +0100 Subject: [PATCH] Fix Npgsql deprecation error --- PluralKit.Core/Stores.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Stores.cs b/PluralKit.Core/Stores.cs index 5c53ce78..197c7a64 100644 --- a/PluralKit.Core/Stores.cs +++ b/PluralKit.Core/Stores.cs @@ -1015,7 +1015,7 @@ namespace PluralKit { memberObjects = ( await conn.QueryAsync( "select * from members where id = any(@Switches)", // lol postgres specific `= any()` syntax - new { Switches = switchMembers.Select(m => m.Member).Distinct() }) + new { Switches = switchMembers.Select(m => m.Member).Distinct().ToList() }) ).ToDictionary(m => m.Id); }