Skip to content

Commit

Permalink
Modify SQL query in getTxByOrgs functionality
Browse files Browse the repository at this point in the history
Signed-off-by: ArchanaArige <nigam_archana@yahoo.co.in>
  • Loading branch information
ArchanaArige committed May 4, 2023
1 parent 4b46082 commit 8c5220e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/persistence/fabric/MetricService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ export class MetricService {
getTxByOrgs(network_name: any, channel_genesis_hash: any) {
const sqlPerOrg = ` select count(creator_msp_id), creator_msp_id
from transactions
where channel_genesis_hash =$1 and network_name=$2
where Trim(creator_msp_id) > '' and channel_genesis_hash =$1 and network_name=$2
group by creator_msp_id`;

return this.sql.getRowsBySQlQuery(sqlPerOrg, [
Expand Down

0 comments on commit 8c5220e

Please sign in to comment.