Skip to content

Commit

Permalink
fix: fixing set-cart-enable route
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorDePaula committed Jan 27, 2023
1 parent be740c2 commit c1e610d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/catalogController.js
Expand Up @@ -200,7 +200,7 @@ export async function updateCartEnabled(req, res) {
});

try {
const result = await req.client.setProductVisibility(enabled);
const result = await req.client.updateCartEnabled(enabled);
res.status(201).json({ status: 'success', response: result });
} catch (error) {
res.status(500).json({ status: 'Error', message: 'Error on set enabled cart.', error: error });
Expand Down

0 comments on commit c1e610d

Please sign in to comment.