mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add last24hrs query for time based search queries to get recently saved/changed items
This commit is contained in:
parent
3abd1bf377
commit
82ef57a36a
1 changed files with 5 additions and 0 deletions
|
|
@ -396,6 +396,11 @@ export const buildQueryString = (
|
|||
endDate = yesterday.endOf('day').toJSDate()
|
||||
break
|
||||
}
|
||||
case 'last24hrs':
|
||||
const ago = new Date()
|
||||
ago.setHours(ago.getHours() - 24)
|
||||
startDate = ago
|
||||
break
|
||||
case 'this week':
|
||||
startDate = DateTime.local().startOf('week').toJSDate()
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue