issue476

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