Просмотр исходного кода

refactor: trim odds history exports

flyzto 1 месяц назад
Родитель
Сommit
f7e4dd0a68
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      server/models/OddsHistory.js

+ 1 - 4
server/models/OddsHistory.js

@@ -21,7 +21,7 @@ const TRACKED_IOR_SET = new Set(TRACKED_IOR_KEYS);
 const ODDS_HISTORY_START_OFFSET = 2 * 60 * 60 * 1000;
 const ODDS_HISTORY_END_OFFSET = 3 * 60 * 60 * 1000;
 const ODDS_HISTORY_RETENTION = 3 * 24 * 60 * 60 * 1000;
-const ODDS_HISTORY_CLEANUP_INTERVAL = 60 * 60 * 1000;
+const ODDS_HISTORY_CLEANUP_INTERVAL = 5 * 60 * 1000;
 
 const oddsPointSchema = new Schema({
   time: { type: Number, required: true },
@@ -223,11 +223,8 @@ const startCleanup = (logger = console) => {
 }
 
 module.exports = {
-  TRACKED_IOR_KEYS,
-  cleanupExpiredHistory,
   getGameOddsHistory,
   getOddsHistoryGames,
-  isInsideTrackWindow,
   recordGameOdds,
   startCleanup,
 };