This commit is contained in:
Barış Soner Uşaklı
2020-10-15 16:55:59 -04:00
3 changed files with 8 additions and 60 deletions

View File

@@ -24,7 +24,7 @@ Users.create = async (req, res) => {
};
Users.update = async (req, res) => {
const userObj = await api.users.update(req, req.body);
const userObj = await api.users.update(req, { ...req.body, ...req.params });
helpers.formatApiResponse(200, res, userObj);
};