mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix archived query
This commit is contained in:
parent
62d4b613f4
commit
913215ab09
1 changed files with 3 additions and 1 deletions
|
|
@ -305,7 +305,9 @@ export const buildQueryString = (
|
|||
case InFilter.ALL:
|
||||
return null
|
||||
case InFilter.ARCHIVE:
|
||||
return "(library_item.state = 'ARCHIVED' OR library_item.archived_at IS NOT NULL)"
|
||||
return `(library_item.state = 'ARCHIVED'
|
||||
OR (library_item.state IN ('SUCCEEDED', 'ARCHIVED', 'PROCESSING', 'FAILED', 'CONTENT_NOT_FETCHED')
|
||||
AND library_item.archived_at IS NOT NULL))`
|
||||
case InFilter.TRASH:
|
||||
// return only deleted pages within 14 days
|
||||
return "(library_item.state = 'DELETED' AND library_item.deleted_at >= NOW() - INTERVAL '14 days')"
|
||||
|
|
|
|||
Loading…
Reference in a new issue