mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
refactor: socket profile update to use api lib
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user