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