shitty naming

This commit is contained in:
leca 2024-11-06 16:19:20 +03:00
parent 66fff16d30
commit 1099738ac3
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@ const TAG = "controllers/category.js";
class CategoryController { class CategoryController {
async create(req, res) { 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)); return res.status(200).send(translate(req.headers["accept-language"], responseCodes.responses.general.ok));
} }