Prechádzať zdrojové kódy

fix: hide half-time odds history games

flyzto 13 hodín pred
rodič
commit
3de36707e4
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      server/models/OddsHistory.js

+ 1 - 1
server/models/OddsHistory.js

@@ -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 });