Linting and clarifying tests

This commit is contained in:
David Erwin
2016-11-05 11:18:18 -04:00
parent a6b2215a4b
commit 712841679d
2 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -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);