fix: make variants pass eslint (#647)
This commit is contained in:
@@ -57,7 +57,6 @@
|
||||
/packages/medusa/src/api/routes/store/returns
|
||||
/packages/medusa/src/api/routes/store/shipping-options
|
||||
/packages/medusa/src/api/routes/store/swaps
|
||||
/packages/medusa/src/api/routes/store/variants
|
||||
|
||||
# END OF FILES TODO
|
||||
|
||||
|
||||
@@ -22,14 +22,10 @@ import { defaultRelations } from "."
|
||||
export default async (req, res) => {
|
||||
const { id } = req.params
|
||||
|
||||
try {
|
||||
const variantService = req.scope.resolve("productVariantService")
|
||||
const variant = await variantService.retrieve(id, {
|
||||
relations: defaultRelations,
|
||||
})
|
||||
const variantService = req.scope.resolve("productVariantService")
|
||||
const variant = await variantService.retrieve(id, {
|
||||
relations: defaultRelations,
|
||||
})
|
||||
|
||||
res.json({ variant })
|
||||
} catch (error) {
|
||||
throw error
|
||||
}
|
||||
res.json({ variant })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user