update: force
This commit is contained in:
@@ -169,7 +169,10 @@ export class NotificationsService {
|
||||
await this.smsService.sendAnnouncementSms(data.userPhone, data.title, data.description, dateFormat(data.date));
|
||||
if (data.userEmail) await this.emailService.sendAnnouncementEmail(data);
|
||||
}
|
||||
return this.createNotification({ title: NotificationMessage.ANNOUNCEMENT, type: NotifType.ANNOUNCEMENT, message, recipientId });
|
||||
return this.createNotification(
|
||||
{ title: NotificationMessage.ANNOUNCEMENT, type: NotifType.ANNOUNCEMENT, message, recipientId },
|
||||
queryRunner,
|
||||
);
|
||||
}
|
||||
|
||||
//************************ */
|
||||
@@ -191,7 +194,10 @@ export class NotificationsService {
|
||||
);
|
||||
if (data.userEmail) await this.emailService.sendWalletEmail(data);
|
||||
}
|
||||
return this.createNotification({ title: NotificationMessage.WALLET_CHARGE, type: NotifType.WALLET_CHARGE, message, recipientId });
|
||||
return this.createNotification(
|
||||
{ title: NotificationMessage.WALLET_CHARGE, type: NotifType.WALLET_CHARGE, message, recipientId },
|
||||
queryRunner,
|
||||
);
|
||||
}
|
||||
|
||||
//************************ */
|
||||
@@ -214,7 +220,10 @@ export class NotificationsService {
|
||||
);
|
||||
if (data.userEmail) await this.emailService.sendWalletEmail(data);
|
||||
}
|
||||
return this.createNotification({ title: NotificationMessage.WALLET_DEDUCTION, type: NotifType.WALLET_DEDUCTION, message, recipientId });
|
||||
return this.createNotification(
|
||||
{ title: NotificationMessage.WALLET_DEDUCTION, type: NotifType.WALLET_DEDUCTION, message, recipientId },
|
||||
queryRunner,
|
||||
);
|
||||
}
|
||||
|
||||
// //************************ */
|
||||
@@ -231,7 +240,10 @@ export class NotificationsService {
|
||||
await this.smsService.sendAnswerTicketSms(data.userPhone, data.ticketId, data.subject);
|
||||
if (data.userEmail) await this.emailService.sendTicketEmail(data);
|
||||
}
|
||||
return this.createNotification({ title: NotificationMessage.ANSWER_TICKET, type: NotifType.ANSWER_TICKET, message, recipientId });
|
||||
return this.createNotification(
|
||||
{ title: NotificationMessage.ANSWER_TICKET, type: NotifType.ANSWER_TICKET, message, recipientId },
|
||||
queryRunner,
|
||||
);
|
||||
}
|
||||
|
||||
// //************************ */
|
||||
@@ -248,7 +260,10 @@ export class NotificationsService {
|
||||
await this.smsService.sendCreateTicketSms(data.userPhone, data.ticketId, data.subject, dateFormat(data.date));
|
||||
if (data.userEmail) await this.emailService.sendTicketEmail(data);
|
||||
}
|
||||
return this.createNotification({ title: NotificationMessage.CREATE_TICKET, type: NotifType.CREATE_TICKET, message, recipientId });
|
||||
return this.createNotification(
|
||||
{ title: NotificationMessage.CREATE_TICKET, type: NotifType.CREATE_TICKET, message, recipientId },
|
||||
queryRunner,
|
||||
);
|
||||
}
|
||||
//************************ */
|
||||
async createAssignTicketNotificationForAdmin(recipientId: string, data: ITicketNotificationData, queryRunner: QueryRunner) {
|
||||
|
||||
Reference in New Issue
Block a user