1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-26 12:28:55 +01:00

use required parameter names, disable camelcase rule for them

This commit is contained in:
Matthias Kretschmann 2017-06-13 11:51:00 +02:00
parent b12b845306
commit fd15b0821c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -41,12 +41,12 @@ export default class Connection {
/** /**
* @public * @public
* @param txId * @param tx_id
*/ */
getStatus(txId) { getStatus(tx_id) { // eslint-disable-line camelcase
return this._req(this.getApiUrls('statuses'), { return this._req(this.getApiUrls('statuses'), {
query: { query: {
txId tx_id
} }
}) })
} }
@ -65,13 +65,13 @@ export default class Connection {
/** /**
* @public * @public
* @param txId * @param tx_id
* @param status * @param status
*/ */
listBlocks({ txId, status }) { listBlocks({ tx_id, status }) {
return this._req(this.getApiUrls('blocks'), { return this._req(this.getApiUrls('blocks'), {
query: { query: {
txId, tx_id,
status status
} }
}) })
@ -108,12 +108,12 @@ export default class Connection {
/** /**
* @public * @public
* @param blockId * @param block_id
*/ */
listVotes(blockId) { listVotes(block_id) { // eslint-disable-line camelcase
return this._req(this.getApiUrls('votes'), { return this._req(this.getApiUrls('votes'), {
query: { query: {
blockId block_id
} }
}) })
} }