From 8204e0e14adbacff155855fcb810488dcc9c84bb Mon Sep 17 00:00:00 2001 From: gaocarri Date: Tue, 8 Oct 2024 17:25:33 +0800 Subject: [PATCH] fix: Count exception occurs when searching conversations (#8754) Co-authored-by: zheng.gao --- api/controllers/console/app/conversation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/controllers/console/app/conversation.py b/api/controllers/console/app/conversation.py index df7bd352a..c1e16b3b9 100644 --- a/api/controllers/console/app/conversation.py +++ b/api/controllers/console/app/conversation.py @@ -188,6 +188,7 @@ class ChatConversationApi(Resource): subquery.c.from_end_user_session_id.ilike(keyword_filter), ), ) + .group_by(Conversation.id) ) account = current_user