More review updates

This commit is contained in:
David Erwin
2016-11-07 13:18:46 -05:00
parent 7b2b2eaa77
commit d3213dd33e
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ AssetSchema.statics.upsert = function(data) {
}
// Perform the upsert against the id field.
let updatePromise = Asset.update({id: data.id}, data, {upsert: true})
let updatePromise = Asset.update({id: data.id}, data, {upsert: true}).exec()
.then(() => {
// Pull the freshly minted asset out and return.