Skip to content

Commit

Permalink
Merge pull request #31 from freethewhat/master
Browse files Browse the repository at this point in the history
Resolve schemaId and ownerId bug in createDocument
  • Loading branch information
alamottemitchell authored Aug 20, 2018
2 parents de2926c + 2d9d753 commit 29f136d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,11 +907,11 @@ class TrueVaultClient {
const body = {document};

if (typeof schemaId === 'string') {
body.schemaId = schemaId;
body.schema_id = schemaId;
}

if (typeof ownerId === 'string') {
body.ownerId = ownerId;
body.owner_id = ownerId;
}
const response = await this.performJSONRequest(`v2/vaults/${vaultId}/documents`, {
method: 'POST',
Expand Down

0 comments on commit 29f136d

Please sign in to comment.