We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9d84d commit b9ff7d4Copy full SHA for b9ff7d4
server/lib/scanners/baseScanner.ts
@@ -671,16 +671,16 @@ class BaseScanner<T> {
671
.getMany();
672
673
if (existingRequests && existingRequests.length > 0) {
674
- existingRequests.forEach((existingRequest) => {
675
- existingRequest.seasons.forEach(async (requestedSeason) => {
+ for (const existingRequest of existingRequests) {
+ for (const requestedSeason of existingRequest.seasons) {
676
if (requestedSeason.seasonNumber === season.seasonNumber) {
677
this.log(
678
`Removing request for Season ${season.seasonNumber} of tmdbId ${tmdbId} as it is unmonitored`
679
);
680
await seasonRequestRepository.remove(requestedSeason);
681
}
682
- });
683
+ }
684
685
686
0 commit comments