mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
fixes bug where querying by chatId results in no records
previous logic for where clause of memoryType checked for existence of chatId and would query for memoryType is null This where clause logic results in an empty result for any request to the endpoint that filters by chatId
This commit is contained in:
@@ -1453,7 +1453,7 @@ export class App {
|
|||||||
chatflowid,
|
chatflowid,
|
||||||
chatType,
|
chatType,
|
||||||
chatId,
|
chatId,
|
||||||
memoryType: memoryType ?? (chatId ? IsNull() : undefined),
|
memoryType: memoryType ?? undefined,
|
||||||
sessionId: sessionId ?? undefined,
|
sessionId: sessionId ?? undefined,
|
||||||
createdDate: toDate && fromDate ? Between(fromDate, toDate) : undefined
|
createdDate: toDate && fromDate ? Between(fromDate, toDate) : undefined
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user