Merge branch 'hotfix/product-retrieve' into develop

This commit is contained in:
olivermrbl
2021-03-03 13:35:11 +01:00
@@ -90,8 +90,11 @@ export default async (req, res) => {
try {
const productService = req.scope.resolve("productService")
const entityManager = req.scope.resolve("manager")
await productService.update(id, value)
await entityManager.transaction(async manager => {
await productService.withTransaction(manager).update(id, value)
})
const product = await productService.retrieve(id, {
select: defaultFields,