Refactor session ID assignment in App class

This commit is contained in:
melon
2024-02-01 14:19:39 +08:00
parent c98ef7a8b1
commit 8d62adec2f
+1 -1
View File
@@ -1440,7 +1440,7 @@ export class App {
chatType, chatType,
chatId, chatId,
memoryType: memoryType ?? (chatId ? IsNull() : undefined), memoryType: memoryType ?? (chatId ? IsNull() : undefined),
sessionId: sessionId ?? (chatId ? IsNull() : undefined), sessionId: sessionId ?? undefined,
createdDate: toDate && fromDate ? Between(fromDate, toDate) : undefined createdDate: toDate && fromDate ? Between(fromDate, toDate) : undefined
}, },
order: { order: {