fix: fix some filter fields not working (#1037)

* fix: fix some filter fields not working

* docs: update changelog
This commit is contained in:
ayangweb
2025-12-30 14:31:08 +08:00
committed by GitHub
parent 90e787058c
commit 81a8631411
2 changed files with 8 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ Information about release notes of Coco App is provided here.
- fix: avoid recentering when resizing to compact after leaving extension #1030
- fix: fix incorrect window position after hiding #1034
- fix: fix arrow keys not working after closing the context menu #1035
- fix: fix some filter fields not working #1037
- fix: apply local results weight to scores generated by rerank() #1036
### ✈️ Improvements

View File

@@ -432,11 +432,15 @@ export const getQueryStrings = (queryStrings: Record<string, string>) => {
const { from, to } = filterDateRange;
if (from) {
nextQueryStrings["update_time_start"] = dayjs(from).startOf('day').format('YYYY-MM-DD[T]HH:mm:ss.SSSZ');
nextQueryStrings["update_time_start"] = dayjs(from)
.startOf("day")
.format("YYYY-MM-DD[T]HH:mm:ss.SSSZ");
}
if (to) {
nextQueryStrings["update_time_end"] = dayjs(to).endOf('day').format('YYYY-MM-DD[T]HH:mm:ss.SSSZ');
nextQueryStrings["update_time_end"] = dayjs(to)
.endOf("day")
.format("YYYY-MM-DD[T]HH:mm:ss.SSSZ");
}
}
@@ -446,7 +450,7 @@ export const getQueryStrings = (queryStrings: Record<string, string>) => {
const result = value.map((item) => item.key).join(",");
queryStrings[key] = `any(${result})`;
nextQueryStrings[key] = `any(${result})`;
}
}