1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 09:46:58 +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
* @param txId
* @param tx_id
*/
getStatus(txId) {
getStatus(tx_id) { // eslint-disable-line camelcase
return this._req(this.getApiUrls('statuses'), {
query: {
txId
tx_id
}
})
}
@ -65,13 +65,13 @@ export default class Connection {
/**
* @public
* @param txId
* @param tx_id
* @param status
*/
listBlocks({ txId, status }) {
listBlocks({ tx_id, status }) {
return this._req(this.getApiUrls('blocks'), {
query: {
txId,
tx_id,
status
}
})
@ -108,12 +108,12 @@ export default class Connection {
/**
* @public
* @param blockId
* @param block_id
*/
listVotes(blockId) {
listVotes(block_id) { // eslint-disable-line camelcase
return this._req(this.getApiUrls('votes'), {
query: {
blockId
block_id
}
})
}