refactor: Remove test run and completion check for flick triggers

This commit is contained in:
Faruk AYDIN
2022-10-28 13:43:01 +02:00
parent c3a54e0c69
commit d8e1f6df81
3 changed files with 13 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ const extraFields = [
'url_t',
'url_s',
'url_m',
'url_o'
'url_o',
].join(',');
const newAlbums = async ($: IGlobalVariable) => {
@@ -42,17 +42,14 @@ const newAlbums = async ($: IGlobalVariable) => {
pages = photosets.pages;
for (const photoset of photosets.photoset) {
if ($.flow.isAlreadyProcessed(photoset.id) && !$.execution.testRun)
return;
$.pushTriggerItem({
raw: photoset,
meta: {
internalId: photoset.id as string
}
})
internalId: photoset.id as string,
},
});
}
} while (page <= pages && !$.execution.testRun);
} while (page <= pages);
};
export default newAlbums;