diff --git a/src/controllers/category.js b/src/controllers/category.js index ac61239..647b896 100644 --- a/src/controllers/category.js +++ b/src/controllers/category.js @@ -6,9 +6,9 @@ const TAG = "controllers/category.js"; class CategoryController { async create(req, res) { - const { localId, categoryName, groupId } = req.body; + const { localId, name, groupId } = req.body; - await CategoryService.create(groupId, localId, categoryName); + await CategoryService.create(groupId, localId, name); return res.status(200).send(translate(req.headers["accept-language"], responseCodes.responses.general.ok)); }