fix: make variants pass eslint
This commit is contained in:
1 parent
82eee77610
commit
a1e446c121
2 files changed
+5
-10
No files matched your search
@@ -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