Skip to content

Commit b9ff7d4

Browse files
committed
refactor: for loops
1 parent 7e9d84d commit b9ff7d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/lib/scanners/baseScanner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,16 +671,16 @@ class BaseScanner<T> {
671671
.getMany();
672672

673673
if (existingRequests && existingRequests.length > 0) {
674-
existingRequests.forEach((existingRequest) => {
675-
existingRequest.seasons.forEach(async (requestedSeason) => {
674+
for (const existingRequest of existingRequests) {
675+
for (const requestedSeason of existingRequest.seasons) {
676676
if (requestedSeason.seasonNumber === season.seasonNumber) {
677677
this.log(
678678
`Removing request for Season ${season.seasonNumber} of tmdbId ${tmdbId} as it is unmonitored`
679679
);
680680
await seasonRequestRepository.remove(requestedSeason);
681681
}
682-
});
683-
});
682+
}
683+
}
684684
}
685685
}
686686
}

0 commit comments

Comments
 (0)