feat(medusa): PriceList import strategy (#2210)

This commit is contained in:
Sebastian Rindom authored and GitHub committed 2022-09-28 15:30:15 +02:00
1 parent 884f36e8a8
commit 7dc8d3a0c9
17 files changed
+1129 -21

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ class BatchJobSubscriber {
.preProcessBatchJob(batchJob.id)
await batchJobServiceTx.setPreProcessingDone(batchJob.id)
} catch (e) {
await this.batchJobService_.setFailed(batchJob.id)
await this.batchJobService_.setFailed(batchJob.id, e.message)
throw e
}
})
@@ -68,7 +68,7 @@ class BatchJobSubscriber {
await batchJobStrategy.withTransaction(manager).processJob(batchJob.id)
await batchJobServiceTx.complete(batchJob.id)
} catch (e) {
await this.batchJobService_.setFailed(batchJob.id)
await this.batchJobService_.setFailed(batchJob.id, e.message)
throw e
}
})