fix(llm): history doesn't show last notes correctly

This commit is contained in:
Elian Doran
2026-03-30 18:55:41 +03:00
parent b4fcf41420
commit f2cd1be3af

View File

@@ -153,7 +153,7 @@ function getMostRecentLlmChat() {
new SearchContext({
ancestorNoteId: "_llmChat",
limit: 1,
orderBy: "note.utcDateModified",
orderBy: "utcDateModified",
orderDirection: "desc"
})
);
@@ -185,7 +185,7 @@ function getRecentLlmChats(limit: number = 10) {
new SearchContext({
ancestorNoteId: "_llmChat",
limit,
orderBy: "note.utcDateModified",
orderBy: "utcDateModified",
orderDirection: "desc"
})
);