shitty naming 2
This commit is contained in:
parent
1099738ac3
commit
646bc77aa0
|
@ -6,17 +6,17 @@ const TAG = "controllers/category.js";
|
||||||
|
|
||||||
class CategoryController {
|
class CategoryController {
|
||||||
async create(req, res) {
|
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));
|
return res.status(200).send(translate(req.headers["accept-language"], responseCodes.responses.general.ok));
|
||||||
}
|
}
|
||||||
|
|
||||||
async update(req, res) {
|
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));
|
return res.status(200).send(translate(req.headers["accept-language"], responseCodes.responses.general.ok));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue