refactor: Remove test run and completion check from new photos
This commit is contained in:
@@ -48,17 +48,14 @@ const newPhotos = async ($: IGlobalVariable) => {
|
|||||||
pages = photos.pages;
|
pages = photos.pages;
|
||||||
|
|
||||||
for (const photo of photos.photo) {
|
for (const photo of photos.photo) {
|
||||||
if ($.flow.isAlreadyProcessed(photo.id) && !$.execution.testRun)
|
|
||||||
return;
|
|
||||||
|
|
||||||
$.pushTriggerItem({
|
$.pushTriggerItem({
|
||||||
raw: photo,
|
raw: photo,
|
||||||
meta: {
|
meta: {
|
||||||
internalId: photo.id as string
|
internalId: photo.id as string,
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
} while (page <= pages);
|
||||||
}
|
|
||||||
} while (page <= pages && !$.execution.testRun);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default newPhotos;
|
export default newPhotos;
|
||||||
|
Reference in New Issue
Block a user