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