mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Return deleted article in the updatesSince API response
This commit is contained in:
parent
22a5850c1e
commit
496b28c9ee
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