|
@ -243,7 +243,7 @@ export class AccountService { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
if (amountInCurrencyOfAccount) { |
|
|
if (amountInCurrencyOfAccount) { |
|
|
await this.accountBalanceService.createAccountBalance({ |
|
|
await this.accountBalanceService.createOrUpdateAccountBalance({ |
|
|
accountId, |
|
|
accountId, |
|
|
userId, |
|
|
userId, |
|
|
balance: new Big(balance).plus(amountInCurrencyOfAccount).toNumber(), |
|
|
balance: new Big(balance).plus(amountInCurrencyOfAccount).toNumber(), |
|
|