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

This commit is contained in:
Sebastian Rindom
2022-09-28 15:30:15 +02:00
committed by GitHub
parent 884f36e8a8
commit 7dc8d3a0c9
17 changed files with 1129 additions and 21 deletions
+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
}
})