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