From af626c3581566b286e73b1bc777fe47b9616b45c Mon Sep 17 00:00:00 2001 From: spiral Date: Tue, 30 Nov 2021 10:33:32 -0500 Subject: [PATCH] fix: typo causes crash when creating a system --- PluralKit.Core/Database/Repository/ModelRepository.System.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Database/Repository/ModelRepository.System.cs b/PluralKit.Core/Database/Repository/ModelRepository.System.cs index 77e30f15..fa484db1 100644 --- a/PluralKit.Core/Database/Repository/ModelRepository.System.cs +++ b/PluralKit.Core/Database/Repository/ModelRepository.System.cs @@ -80,7 +80,7 @@ public partial class ModelRepository var system = await _db.QueryFirst(conn, query, "returning *"); _logger.Information("Created {SystemId}", system.Id); - await _db.Execute(conn => conn.QueryAsync("insert into config (system) value (@system)", new { system = system.Id })); + await _db.Execute(conn => conn.QueryAsync("insert into config (system) values (@system)", new { system = system.Id })); // no dispatch call here - system was just created, we don't have a webhook URL return system;