[Bug Fix] Fix botgrouplist to display unique entries. (#2785)

This commit is contained in:
Aeadoin
2023-01-23 18:39:55 -05:00
committed by GitHub
parent 293f79268d
commit 93eddf603b
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -2624,7 +2624,7 @@ bool BotDatabase::LoadBotGroupsListByOwnerID(const uint32 owner_id, std::list<st
query = fmt::format(
"SELECT group_name, group_leader_id FROM "
"SELECT DISTINCT(group_name), group_leader_id FROM "
"bot_groups bg INNER JOIN bot_group_members bgm "
"ON bg.groups_index = bgm.groups_index "
"WHERE bgm.bot_id IN "