Skip to content

Commit e3eeb5d

Browse files
authored
Bugfix/Remove Redundant Distinct (#4865)
remove redundant distinct
1 parent 9d43852 commit e3eeb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/utils/getChatMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async function handleFeedbackQuery(params: {
162162
// First get session IDs with pagination
163163
const sessionQuery = appServer.AppDataSource.getRepository(ChatMessage)
164164
.createQueryBuilder('chat_message')
165-
.select('DISTINCT chat_message.sessionId', 'sessionId')
165+
.select('chat_message.sessionId', 'sessionId')
166166
.where('chat_message.chatflowid = :chatflowid', { chatflowid })
167167

168168
// Apply basic filters

0 commit comments

Comments
 (0)