Merge branch 'master' into ban-user

This commit is contained in:
Gabriela Rodríguez Berón
2016-12-09 10:28:32 -10:00
committed by GitHub
18 changed files with 357 additions and 56 deletions
+3 -1
View File
@@ -132,10 +132,12 @@ AssetSchema.statics.findOrCreateByUrl = (url) => Asset.findOneAndUpdate({url}, {
* @param {[type]} settings [description]
* @return {[type]} [description]
*/
AssetSchema.statics.overrideSettings = (id, settings) => Asset.update({id}, {
AssetSchema.statics.overrideSettings = (id, settings) => Asset.findOneAndUpdate({id}, {
$set: {
settings
}
}, {
new: true
});
/**