|
|
@@ -152,7 +152,7 @@ const getGameOddsHistory = async (eventId) => {
|
|
|
}
|
|
|
|
|
|
const getOddsHistoryGames = async () => {
|
|
|
- const histories = await OddsHistory.find()
|
|
|
+ const histories = await OddsHistory.find({ eventId: { $gt: 0 } })
|
|
|
.select('eventId leagueName teamHomeName teamAwayName startTime endTime markets updatedAt')
|
|
|
.sort({ startTime: -1 })
|
|
|
.lean({ flattenMaps: true });
|