Fix product next sync error bubbling bug

This commit is contained in:
Dominic Ferrando
2026-07-03 19:47:55 -04:00
parent 69cf4900dd
commit 97881d357e
2 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -250,9 +250,9 @@ export const app = new Elysia()
});
app.listen(3000, async () => {
log.info({ port: 3000 }, "server started")
if (cluster.worker?.id === 1) {
await syncService.nextSync().catch((err) => log.error({ err }, "failed to resume product sync queue"));
log.info({ port: 3000 }, "server started")
await syncService.syncNext().catch((err) => log.error({ err }, "failed to resume product sync queue"));
}
});