refactor: socket profile update to use api lib

This commit is contained in:
Julian Lam
2020-10-15 16:21:45 -04:00
parent d69e503d21
commit 31ae8a8323
3 changed files with 4 additions and 53 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);
};