mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Linting and clarifying tests
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ AssetSchema.statics.upsert = function(data) {
|
||||
|
||||
// Perform the upsert against the id field.
|
||||
let updatePromise = Asset.update({id: data.id}, data, {upsert: true})
|
||||
.then((updateRes) => {
|
||||
.then(() => {
|
||||
|
||||
// Pull the freshly minted asset out and return.
|
||||
return Asset.findById(data.id);
|
||||
|
||||
Reference in New Issue
Block a user