Fix product next sync error bubbling bug
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user