chore: notif service
This commit is contained in:
@@ -194,12 +194,7 @@ export class NotificationsService {
|
||||
queryRunner,
|
||||
);
|
||||
if (isActive) {
|
||||
await this.smsService.sendWalletChargeSms(
|
||||
data.userPhone,
|
||||
numberFormat(data.amount),
|
||||
numberFormat(data.balance),
|
||||
dateFormat(data.date),
|
||||
);
|
||||
await this.smsService.sendWalletChargeSms(data.userPhone, data.amount, data.balance, dateFormat(data.date));
|
||||
if (data.userEmail) await this.emailService.sendWalletEmail(data);
|
||||
}
|
||||
return this.createNotification(
|
||||
@@ -219,13 +214,7 @@ export class NotificationsService {
|
||||
queryRunner,
|
||||
);
|
||||
if (isActive) {
|
||||
await this.smsService.sendWalletDeductionSms(
|
||||
data.userPhone,
|
||||
numberFormat(data.amount),
|
||||
numberFormat(data.balance),
|
||||
data.reason,
|
||||
dateFormat(data.date),
|
||||
);
|
||||
await this.smsService.sendWalletDeductionSms(data.userPhone, data.amount, data.balance, data.reason, dateFormat(data.date));
|
||||
if (data.userEmail) await this.emailService.sendWalletEmail(data);
|
||||
}
|
||||
return this.createNotification(
|
||||
@@ -409,7 +398,7 @@ export class NotificationsService {
|
||||
);
|
||||
|
||||
if (isActive) {
|
||||
await this.smsService.sendPaymentReminderSms(data.userPhone, numberFormat(data.amount));
|
||||
await this.smsService.sendPaymentReminderSms(data.userPhone, data.amount);
|
||||
if (data.userEmail) await this.emailService.sendPaymentReminderEmail(data);
|
||||
}
|
||||
|
||||
@@ -435,7 +424,7 @@ export class NotificationsService {
|
||||
);
|
||||
|
||||
if (isActive) {
|
||||
await this.smsService.sendPaymentCancellationSms(data.userPhone, numberFormat(data.amount));
|
||||
await this.smsService.sendPaymentCancellationSms(data.userPhone, data.amount);
|
||||
if (data.userEmail) await this.emailService.sendPaymentCancellationEmail(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user