feat: add new photo in album flickr trigger

This commit is contained in:
Ali BARIN
2022-04-15 00:47:47 +02:00
committed by Ömer Faruk Aydın
parent 651cceec14
commit 1e00c7d14e
10 changed files with 204 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ export default class FavoritePhoto {
}
async run(startTime: Date) {
const { photos } = (await this.client.favorites.getList({ per_page: 1, })).body;
const { photos } = (await this.client.favorites.getList()).body;
const favPhotos = [...photos.photo];
const newFavPhotos = [];
@@ -45,7 +45,7 @@ export default class FavoritePhoto {
if (isLastItem && page < photos.pages) {
page = page + 1;
const { photos } = (await this.client.favorites.getList({ page, per_page: 1, })).body;
const { photos } = (await this.client.favorites.getList({ page, })).body;
favPhotos.push(...photos.photo);
}
}