From 5219bfbaa974a48a5b4a6329c4de3c67c5f2987c Mon Sep 17 00:00:00 2001 From: Melissa Date: Fri, 4 Oct 2019 22:46:18 +0100 Subject: [PATCH] Fixed an SQL Query where UpdateChannel would update the guilds table --- DiscordBot/Handlers/ChannelHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordBot/Handlers/ChannelHandler.cs b/DiscordBot/Handlers/ChannelHandler.cs index 434d9a3..aa0d0fa 100644 --- a/DiscordBot/Handlers/ChannelHandler.cs +++ b/DiscordBot/Handlers/ChannelHandler.cs @@ -205,7 +205,7 @@ private static async Task UpdateChannelInDB(SocketGuildChannel updatedChannel) }; DatabaseActivity.ExecuteNonQueryCommand( - "UPDATE guilds SET channelName=@channelName, channelType=@channelType WHERE channelID=@channelID", + "UPDATE channels SET channelName=@channelName, channelType=@channelType WHERE channelID=@channelID", queryParams); } }