Bugfix/Remove Redundant Distinct (#4865)

remove redundant distinct
This commit is contained in:
Henry Heng 2025-07-14 12:35:50 +01:00 committed by GitHub
parent 9d438529a6
commit e3eeb5d8a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ async function handleFeedbackQuery(params: {
// First get session IDs with pagination
const sessionQuery = appServer.AppDataSource.getRepository(ChatMessage)
.createQueryBuilder('chat_message')
.select('DISTINCT chat_message.sessionId', 'sessionId')
.select('chat_message.sessionId', 'sessionId')
.where('chat_message.chatflowid = :chatflowid', { chatflowid })
// Apply basic filters