Skip to content

Commit

Permalink
🚑 Try fixing duplicate image crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jul 4, 2024
1 parent 312c780 commit 51fe1e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/webtoon/webtoon/webtoon-database.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export class WebtoonDatabaseService{
}
});
const imagesToSave: any[] = [];
for(let i: number = 0; i < episodeData.images.length; i++){
if(!dbImages.find((dbImage: any) => dbImage.sum === this.miscService.getSum(episodeData.images[i])))
for(let i: number = 0; i < imagesSum.length; i++){
if(!dbImages.find(dbImage => dbImage.sum === imagesSum[i]))
imagesToSave.push({
sum: this.miscService.getSum(episodeData.images[i]),
sum: imagesSum[i],
type_id: imageType.id,
});
}
Expand Down

0 comments on commit 51fe1e1

Please sign in to comment.