Skip to content

Commit

Permalink
Merge pull request #15 from near-daos/bugfix/total_in_out_fix
Browse files Browse the repository at this point in the history
Total in/out metric calculation fix
  • Loading branch information
okalenyk authored Jan 19, 2022
2 parents 01e49e6 + 6dae033 commit edc14d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/receipt/src/receipt-action.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ export class ReceiptActionService {
transferType === TransferType.Incoming ? 'receiver' : 'predecessor'
}_account_id ${dao ? `= '${dao}'` : `like '%.${contractName}'`}`,
);

qb.andWhere(
`receipt_${
transferType === TransferType.Incoming ? 'predecessor' : 'receiver'
}_account_id ${dao ? `!= '${dao}'` : `not like '%.${contractName}'`}`,
);
}

if (from) {
Expand Down

0 comments on commit edc14d3

Please sign in to comment.