mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-25 20:00:19 +01:00
use required parameter names, disable camelcase rule for them
This commit is contained in:
parent
b12b845306
commit
fd15b0821c
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user