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