fix: big
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user