feat: make it possible to use subscribers in v2 (#6731)

This commit is contained in:
Sebastian Rindom authored and GitHub committed 2024-03-19 18:31:58 +00:00
1 parent db9c460490
commit 873c21355c
8 files changed
+39 -27

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@
"@medusajs/modules-sdk": "^1.12.8",
"@medusajs/utils": "^1.11.5",
"awilix": "^8.0.0",
"bullmq": "^3.5.6",
"bullmq": "^5.4.2",
"ioredis": "^5.2.5"
}
}
@@ -296,7 +296,7 @@ describe("RedisEventBusService", () => {
completedSubscriberIds: ["1"],
},
attemptsMade: 2,
update: (data) => data,
updateData: (data) => data,
opts: { attempts: 3 },
})
.catch((err) => void 0)
@@ -197,7 +197,7 @@ export default class RedisEventBusService extends AbstractEventBusModuleService
job.data.completedSubscriberIds = updatedCompletedSubscribers
await job.update(job.data)
await job.updateData(job.data)
const errorMessage = `One or more subscribers of ${eventName} failed. Retrying...`