Skip to content

Commit

Permalink
fix: don't log when amazon has no loot
Browse files Browse the repository at this point in the history
Signed-off-by: Eiko Wagenknecht <[email protected]>
  • Loading branch information
eikowagenknecht committed Feb 21, 2025
1 parent 63ad11d commit 3a0b04a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/services/scraper/implementations/amazon/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export abstract class AmazonBaseScraper extends BaseScraper {
return OfferPlatform.PC;
}

protected override shouldAlwaysHaveOffers(): boolean {
return true;
}

protected override isFakeAlways(): boolean {
// Offers on Amazon are never valid forever
return false;
Expand Down
4 changes: 4 additions & 0 deletions src/services/scraper/implementations/amazon/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export class AmazonGamesScraper extends AmazonBaseScraper {
return OfferType.GAME;
}

override shouldAlwaysHaveOffers(): boolean {
return true;
}

override readOffers(): Promise<Omit<NewOffer, "category">[]> {
return super.readWebOffers({
offersUrl: OFFER_URL,
Expand Down

0 comments on commit 3a0b04a

Please sign in to comment.