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:
parent
4e8bf4903d
commit
55c2a8612b
|
|
@ -1453,7 +1453,7 @@ export class App {
|
|||
chatflowid,
|
||||
chatType,
|
||||
chatId,
|
||||
memoryType: memoryType ?? (chatId ? IsNull() : undefined),
|
||||
memoryType: memoryType ?? undefined,
|
||||
sessionId: sessionId ?? undefined,
|
||||
createdDate: toDate && fromDate ? Between(fromDate, toDate) : undefined
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue