mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update comment
This commit is contained in:
parent
9d452c099a
commit
eb901a534b
1 changed files with 2 additions and 1 deletions
|
|
@ -231,14 +231,15 @@ export const importer = Sentry.GCPFunction.wrapHttpFunction(
|
|||
|
||||
// paginate api calls to the integration
|
||||
do {
|
||||
// filter out items that are deleted or archived if the stateToImport is unarchived
|
||||
// write the list of urls, state and labels to the stream
|
||||
retrievedData
|
||||
.filter((row) => {
|
||||
// filter out items that are deleted
|
||||
if (row.state === State.DELETED) {
|
||||
return false
|
||||
}
|
||||
|
||||
// filter out items that archived if the stateToImport is unarchived
|
||||
return (
|
||||
stateToImport !== State.UNARCHIVED ||
|
||||
row.state !== State.ARCHIVED
|
||||
|
|
|
|||
Loading…
Reference in a new issue