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