issue #778 fixed

parent 6a9e1c67
......@@ -171,7 +171,7 @@ module.exports = {
License.activate(params.license_number, created.id, function(err, license) {
if (err)
return res.serverError(err);
created = created.toObject();
created = created.toJSON();
created.license = license.toObject();
return res.ok(created);
});
......
......@@ -176,7 +176,6 @@ module.exports = {
},
legend: false,
legend_size: 'normal',
pic: "defaultAvatar.jpg",
size: 'large',
picto_background: '#0000ff',
tape_background: '#00ffff',
......@@ -202,9 +201,6 @@ module.exports = {
}
});
}
if (typeof validAttributes.pic !== 'string') {
delete validAttributes.pic;
}
if (typeof validAttributes.input_selection !== 'object') {
delete validAttributes.input_selection;
} else {
......
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