Skip to content

Commit

Permalink
Update api_gateway.bal
Browse files Browse the repository at this point in the history
  • Loading branch information
harshalkh authored Oct 19, 2023
1 parent 0dc6d53 commit 01959b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/banking-accounts-service/api_gateway.bal
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ service /accounts on apiGateway {
AccountWithBalances[] accountBalance = from AccountWithBalances account in accountBalances
where account.customerId == customerId
select account;
accountBalance[0].balances = [];
return accountBalance;
AccountWithBalances[] accountBalance1 = accountBalance.clone();
accountBalance1[0].balances = [];
return accountBalance1;
}

@http:ResourceConfig {
Expand Down

0 comments on commit 01959b7

Please sign in to comment.