Add retries to processEvent handler with DB integration
This commit is contained in:
@@ -152,7 +152,7 @@ class ApparelSyncService {
|
||||
|
||||
async getLatestSyncState(sessionId: string) {
|
||||
const latestSync = await db.selectFrom("events")
|
||||
.select(["started_at", "ended_at", "has_failed", "state"])
|
||||
.select(["started_at", "available_at", "ended_at", "has_failed", "state"])
|
||||
.where("group", "=", this.Queue.group)
|
||||
.where("type", "=", "apparel_sync_update")
|
||||
.where(sql<string>`payload->'session'->>'id'`, "=", sessionId)
|
||||
|
||||
Reference in New Issue
Block a user