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) { ...@@ -62,8 +62,8 @@ export default function userController(router: Router) {
let avatar: any; let avatar: any;
if (req.file) avatar = req.file; if (req.file) avatar = req.file;
try { try {
await editUser(req.params.user,req.body,avatar,req.authToken); const response = await editUser(req.params.user,req.body,avatar,req.authToken);
res.json('USER_UPDATED'); res.json(response);
} catch(err) { } catch(err) {
res.status(500).json(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