hotfix(medusa): Remove atomicPhase from product retrieve

This commit is contained in:
olivermrbl committed 2021-02-23 12:49:46 +01:00
1 parent 90ea888829
commit d0e7ebdcf1
1 file changed
+3 -3
+3 -3
View File
@@ -143,8 +143,9 @@ class ProductService extends BaseService {
* @return {Promise<Product>} the result of the find one operation.
*/
async retrieve(productId, config = {}) {
return this.atomicPhase_(async manager => {
const productRepo = manager.getCustomRepository(this.productRepository_)
const productRepo = this.manager_.getCustomRepository(
this.productRepository_
)
const validatedId = this.validateId_(productId)
const query = this.buildQuery_({ id: validatedId }, config)
const product = await productRepo.findOne(query)
@@ -156,7 +157,6 @@ class ProductService extends BaseService {
}
return product
})
}
/**