Commit 01703fb3 authored by Guillaume Lebigot's avatar Guillaume Lebigot

Actually send correct response when editing

parent 486137d5
Pipeline #12065 passed with stage
in 1 minute and 20 seconds
......@@ -62,8 +62,8 @@ export default function userController(router: Router) {
let avatar: any;
if (req.file) avatar = req.file;
try {
await editUser(req.params.user,req.body,avatar,req.authToken);
res.json('USER_UPDATED');
const response = await editUser(req.params.user,req.body,avatar,req.authToken);
res.json(response);
} catch(err) {
res.status(500).json(err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment