mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
More review updates
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user