Skip to content

Commit

Permalink
Fixed an SQL Query where UpdateChannel would update the guilds table
Browse files Browse the repository at this point in the history
  • Loading branch information
MythicalCuddles committed Oct 4, 2019
1 parent 5b6f561 commit 5219bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DiscordBot/Handlers/ChannelHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5219bfb

Please sign in to comment.