mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 04:01:32 +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.
|
||||
|
||||
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user