mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1310 from omnivore-app/fix/update-since-api
Return deleted article in the updatesSince API response
This commit is contained in:
commit
8ea727460c
1 changed files with 7 additions and 12 deletions
|
|
@ -993,18 +993,13 @@ export const updatesSinceResolver = authorized<
|
|||
const edges = pages.map((p) => {
|
||||
const updateReason = getUpdateReason(p, startDate)
|
||||
return {
|
||||
node:
|
||||
updateReason === UpdateReason.Deleted
|
||||
? null
|
||||
: ({
|
||||
...p,
|
||||
image: p.image && createImageProxyUrl(p.image, 260, 260),
|
||||
isArchived: !!p.archivedAt,
|
||||
contentReader:
|
||||
p.pageType === PageType.File
|
||||
? ContentReader.Pdf
|
||||
: ContentReader.Web,
|
||||
} as SearchItem),
|
||||
node: {
|
||||
...p,
|
||||
image: p.image && createImageProxyUrl(p.image, 260, 260),
|
||||
isArchived: !!p.archivedAt,
|
||||
contentReader:
|
||||
p.pageType === PageType.File ? ContentReader.Pdf : ContentReader.Web,
|
||||
} as SearchItem,
|
||||
cursor: endCursor,
|
||||
itemID: p.id,
|
||||
updateReason,
|
||||
|
|
|
|||
Loading…
Reference in a new issue