From 646bc77aa05b78982ee799ee5a81491fe2c2eeb8 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 6 Nov 2024 16:22:37 +0300 Subject: [PATCH] shitty naming 2 --- src/controllers/category.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); }