shitty naming 2

This commit is contained in:
leca 2024-11-06 16:22:37 +03:00
parent 1099738ac3
commit 646bc77aa0
1 changed files with 4 additions and 4 deletions

View File

@ -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));
}