From 3207fcff1b7ce37345e77f20a856ffe0ca9c8bd5 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 26 Jun 2020 15:06:46 +0200 Subject: [PATCH] Fix guild ID row name in query --- PluralKit.Bot/Services/LogChannelService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index 72ce12fd..4631a24a 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -59,7 +59,7 @@ namespace PluralKit.Bot { // Channel doesn't exist or we don't have permission to access it, let's remove it from the database too _logger.Warning("Attempted to fetch missing log channel {LogChannel}, removing from database", channel); await using var conn = await _db.Obtain(); - await conn.ExecuteAsync("update servers set log_channel = null where server = @Guild", + await conn.ExecuteAsync("update servers set log_channel = null where id = @Guild", new {Guild = guild}); }