From 1099738ac3fdacdb3a65edc87dcce233392f5e25 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 6 Nov 2024 16:19:20 +0300 Subject: [PATCH] shitty naming --- src/controllers/category.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/category.js b/src/controllers/category.js index ac61239..647b896 100644 --- a/src/controllers/category.js +++ b/src/controllers/category.js @@ -6,9 +6,9 @@ const TAG = "controllers/category.js"; class CategoryController { 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)); }