From bd1c54f5eb983cc2801e1eb36eacd030a95c9fa0 Mon Sep 17 00:00:00 2001 From: Iris System Date: Sun, 12 May 2024 15:32:44 +1200 Subject: [PATCH] fix(api): trim trailing spaces from hids in GetSystemSwitches --- PluralKit.API/Controllers/v2/SwitchControllerV2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.API/Controllers/v2/SwitchControllerV2.cs b/PluralKit.API/Controllers/v2/SwitchControllerV2.cs index e0b7ff63..5c28839e 100644 --- a/PluralKit.API/Controllers/v2/SwitchControllerV2.cs +++ b/PluralKit.API/Controllers/v2/SwitchControllerV2.cs @@ -39,7 +39,7 @@ public class SwitchControllerV2: PKControllerBase var res = await _db.Execute(conn => conn.QueryAsync( @"select *, array( - select members.hid from switch_members, members + select trim(members.hid) from switch_members, members where switch_members.switch = switches.id and members.id = switch_members.member ) as members from switches where switches.system = @System and switches.timestamp < @Before