refactor: Remove test run and completion check from new photos

This commit is contained in:
Faruk AYDIN
2022-10-28 01:11:29 +02:00
parent 232ba230eb
commit 74d7e472af

View File

@@ -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 && !$.execution.testRun); } while (page <= pages);
}; };
export default newPhotos; export default newPhotos;