Add Olist sync monitor
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
const { createApp } = require('./server');
|
||||
const { initDB } = require('./db');
|
||||
const { OLIST_SYNC_ENABLED, PORT } = require('./config');
|
||||
const { scheduleOlistSync } = require('./services/olistService');
|
||||
const { markInterruptedOlistRuns, scheduleOlistSync } = require('./services/olistService');
|
||||
|
||||
const start = async () => {
|
||||
await initDB();
|
||||
await markInterruptedOlistRuns();
|
||||
|
||||
const app = createApp();
|
||||
if (OLIST_SYNC_ENABLED) scheduleOlistSync();
|
||||
|
||||
Reference in New Issue
Block a user