From d3213dd33e418afe98e6dd8fd820ff49c68b8531 Mon Sep 17 00:00:00 2001 From: David Erwin Date: Mon, 7 Nov 2016 13:18:46 -0500 Subject: [PATCH] More review updates --- models/asset.js | 2 +- swagger.yaml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/models/asset.js b/models/asset.js index 5864d6409..afd446b01 100644 --- a/models/asset.js +++ b/models/asset.js @@ -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. diff --git a/swagger.yaml b/swagger.yaml index acc696ec6..ba945e2e1 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -3,10 +3,10 @@ info: title: Talk API description: A commenting platform from The Coral Project. https://coralproject.net version: "0.0.1" -host: talk-stg.coralproject.net/api/v1 +host: talk-stg.coralproject.net schemes: - https -basePath: /v1 +basePath: /api/v1 produces: - application/json paths: @@ -170,8 +170,6 @@ paths: responses: 200: description: OK - 404: - description: Not Found put: tags: - Asset