issue476

parent fc730012
Showing with 9 additions and 9 deletions
...@@ -188,15 +188,15 @@ module.exports = { ...@@ -188,15 +188,15 @@ module.exports = {
var params = req.params.all(); var params = req.params.all();
if (!params.id) { if (!params.id) {
res.badRequest(); return res.badRequest();
} else {
Picto.update({ id: params.id }, { owner: null}).then(function (updated) { Picto.update({ id: params.id }, { owner: null })
res.ok(updated[0]); .then(function (updated) {
}) return res.ok(updated[0]);
.catch(function() { })
res.serverError(); .catch(function(err) {
}); return res.serverError("Error: " + 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 sign in to comment