mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1952 from omnivore-app/fix/elastic-query-error
Fix start_date or end_date is undefined in elasticsearch search query
This commit is contained in:
commit
50347b8549
1 changed files with 2 additions and 2 deletions
|
|
@ -134,8 +134,8 @@ const appendDateFilters = (
|
|||
filters.forEach((filter) => {
|
||||
builder = builder.query('range', {
|
||||
[filter.field]: {
|
||||
gt: filter.startDate?.toISOString(),
|
||||
lt: filter.endDate?.toISOString(),
|
||||
gt: filter.startDate?.getTime(),
|
||||
lt: filter.endDate?.getTime(),
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue