feat(eom): added in historical inv data split accordingly
This commit is contained in:
@@ -16,6 +16,7 @@ import standardTemplate from "./route/dm/getStandardTemplate.js";
|
||||
import standardForcasttemplate from "./route/dm/getStandardForecastTemplate.js";
|
||||
import postForecast from "./route/dm/forecastIn.js";
|
||||
import outbound from "./route/getOutbound.js";
|
||||
import { runHistoricalData } from "./controller/eom/historicalInv.js";
|
||||
|
||||
const app = new OpenAPIHono();
|
||||
|
||||
@@ -49,7 +50,8 @@ const appRoutes = routes.forEach((route) => {
|
||||
|
||||
setTimeout(() => {
|
||||
migrateAdjustments();
|
||||
}, 120 * 1000);
|
||||
runHistoricalData();
|
||||
}, 120 * 1000); // starts 2 min after a server restart or crash.
|
||||
|
||||
/**
|
||||
* Start the cycle count check
|
||||
|
||||
Reference in New Issue
Block a user