hotfix(medusa): adds missing regionService

This commit is contained in:
Sebastian Rindom committed 2020-10-08 10:17:38 +02:00
1 parent 2ad6ca8053
commit abbe42cec8
1 file changed
+2 -2
@@ -10,7 +10,7 @@ export default async (req, res) => {
throw error throw error
} }
const productService = req.scope.resolve("regionService") const regionService = req.scope.resolve("regionService")
const region = await regionService.retrieve(value) const region = await regionService.retrieve(value)
const data = await regionService.decorate(region, [ const data = await regionService.decorate(region, [
@@ -22,5 +22,5 @@ export default async (req, res) => {
"fulfillment_providers", "fulfillment_providers",
]) ])
res.json({ region }) res.json({ region: data })
} }