diff --git a/src/crons/EpicGames.ts b/src/crons/EpicGames.ts index d65371c..a9c5ed5 100644 --- a/src/crons/EpicGames.ts +++ b/src/crons/EpicGames.ts @@ -101,6 +101,7 @@ interface EpicGamesProducts { urlSlug: string; price: { totalPrice: { + discountPrice?: number; fmtPrice: { originalPrice: string; }; @@ -205,6 +206,9 @@ export async function getOfferedGames( game.promotions?.promotionalOffers?.[0]?.promotionalOffers?.[0]; if (!promotion) return false; + const price = game.price.totalPrice.discountPrice; + if (price !== 0) return false; + const [startDate, endDate] = [ new Date(promotion.startDate), new Date(promotion.endDate),