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.
+2 -4
View File
@@ -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