Skip to content

Commit

Permalink
Fixed models sqls statement according to Michaels spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bothadeon committed Aug 5, 2020
1 parent 700918c commit fcd3313
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file.
2 changes: 1 addition & 1 deletion src/models/transferSettlement/facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async function updateTransferSettlement (transferId, status, trx = null) {
this.select('PC1.participantCurrencyId', 'TP.amount')
.from('transferParticipant AS TP')
.innerJoin('participantCurrency AS PC', 'TP.participantCurrencyId', 'PC.participantCurrencyId')
.innerJoin('settlementModel AS M', 'PC.ledgerAccountTypeId', 'PC.ledgerAccountTypeId')
.innerJoin('settlementModel AS M', 'M.ledgerAccountTypeId', 'PC.ledgerAccountTypeId')
.innerJoin('settlementGranularity AS G', 'M.settlementGranularityId', 'G.settlementGranularityId')
.innerJoin('participantCurrency AS PC1', function () {
this.on('PC1.currencyId', 'PC.currencyId')
Expand Down

0 comments on commit fcd3313

Please sign in to comment.