Skip to content

Commit

Permalink
Merge pull request #53 from mojaloop/fix/await-refund
Browse files Browse the repository at this point in the history
fix: added await on refund handler
  • Loading branch information
elijah0kello authored Oct 2, 2024
2 parents ad649fe + 7ba561f commit 8881e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airtel-core-connector/src/domain/coreConnectorAgg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export class CoreConnectorAggregate {
} catch (error: unknown) {
if (error instanceof SDKClientError) {
// perform refund or rollback
this.handleRefund(payload);
await this.handleRefund(payload);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion airtel-core-connector/test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const sendMoneyDTO =(idValue:string, amount:string,): TAirtelSendMoneyReq
"receiveCurrency": "ZMW",
"transactionDescription": "Payment for services",
"transactionType":"TRANSFER",
"payer": "Elikah Okello",
"payer": "Elijah Okello",
"payerAccount": idValue,
"dateOfBirth": "1985-04-12"
});
Expand Down

0 comments on commit 8881e6b

Please sign in to comment.