Skip to content

Commit

Permalink
fix: Fixed edit-collection route (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorDePaula committed Feb 24, 2023
1 parent 14e74f3 commit cb2d8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/catalogController.js
Expand Up @@ -158,7 +158,7 @@ export async function editCollection(req, res) {
});

try {
const result = await req.client.createCollection(id, options);
const result = await req.client.editCollection(id, options);
res.status(201).json({ status: 'success', response: result });
} catch (error) {
res.status(500).json({ status: 'Error', message: 'Error on edit collection.', error: error });
Expand Down

0 comments on commit cb2d8cd

Please sign in to comment.