shitty naming
This commit is contained in:
parent
66fff16d30
commit
1099738ac3
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue