Skip to content

Commit

Permalink
BE-702 Add condition to query for getting tx count
Browse files Browse the repository at this point in the history
Change-Id: If0c60a427f02fceff821dfbe3c5b7246f735803f
Signed-off-by: Atsushi Neki <atsushin@fast.au.fujitsu.com>
  • Loading branch information
nekia committed Oct 31, 2019
1 parent 010f25c commit 9058833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/persistence/fabric/CRUDService.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class CRUDService {
await this.sql.updateBySql(
`update chaincodes set txcount =txcount+1 where channel_genesis_hash='${
transaction.channel_genesis_hash
}'`
}' and name='${transaction.chaincodename}'`
);
await this.sql.updateBySql(
`update channel set trans =trans+1 where channel_genesis_hash='${
Expand Down
2 changes: 1 addition & 1 deletion client/test/specs/chaincode_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Explorer chaincode view', () => {
var ccTxCount = browser.$(
'#root > div > div > div > div > div > div > div > div.rt-table > div.rt-tbody > div > div > div:nth-child(4)'
);
ccTxCount.getText().should.be.equal('5');
ccTxCount.getText().should.be.equal('1');

var ccChName = browser.$(
'#root > div > div > div > div > div > div > div > div.rt-table > div.rt-tbody > div > div > div:nth-child(2)'
Expand Down

0 comments on commit 9058833

Please sign in to comment.