Skip to content

Commit

Permalink
fix(mojaloop/2525): transfers are not being assigned to a settlementW…
Browse files Browse the repository at this point in the history
…indow on transfers version=1.1

- Fix for [transfers are not being assigned to a settlementWindow on transfers+json;version=1.1 #2525](mojaloop/project#2525)
- Added devspace patterns to gitignore
  • Loading branch information
mdebarros committed Oct 1, 2021
1 parent 180e73d commit a4394ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jspm_packages

.history

# https://devspace.sh/
devspace*
.devspace/**.*

# Add ignores
*IGNORE*
*ignore*
2 changes: 1 addition & 1 deletion src/models/transfer/facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ const savePayeeTransferResponse = async (transferId, payload, action, fspiopErro

await knex.transaction(async (trx) => {
try {
if (!fspiopError && [TransferEventAction.COMMIT, TransferEventAction.BULK_COMMIT].includes(action)) {
if (!fspiopError && [TransferEventAction.COMMIT, TransferEventAction.BULK_COMMIT, TransferEventAction.RESERVE].includes(action)) {
const res = await Db.from('settlementWindow').query(builder => {
return builder
.leftJoin('settlementWindowStateChange AS swsc', 'swsc.settlementWindowStateChangeId', 'settlementWindow.currentStateChangeId')
Expand Down

0 comments on commit a4394ce

Please sign in to comment.