Schedule Olist sync from last completion

This commit is contained in:
Cauê Faleiros
2026-08-12 09:12:14 -03:00
parent db5cdcba24
commit 4fea1f322a
4 changed files with 48 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ const start = async () => {
await markInterruptedOlistRuns();
const app = createApp();
if (OLIST_SYNC_ENABLED) scheduleOlistSync();
if (OLIST_SYNC_ENABLED) await scheduleOlistSync();
app.listen(PORT, '0.0.0.0', () => {
console.log(`Nexstar Backend running at http://localhost:${PORT}`);
console.log(`Endpoint for n8n: POST http://localhost:${PORT}/api/data`);