This commit is contained in:
Mahyargdz
2025-05-14 15:33:09 +03:30
parent 22ba9e52dc
commit eae5981ea1
2 changed files with 4 additions and 3 deletions
@@ -822,8 +822,8 @@ export class InvoicesService {
private async addNotifyForWalletDeduction(invoice: Invoice, user: User, userWallet: Wallet, reason: string) {
await this.notificationQueue.addWalletDeductionNotification(user.id, {
amount: invoice.totalPrice.toNumber(),
balance: userWallet.balance.toNumber(),
amount: new Decimal(invoice.totalPrice).toNumber(),
balance: new Decimal(userWallet.balance).toNumber(),
reason,
date: dayjs().toDate(),
userPhone: user.phone,