fix: register queue still sen notification #118

Merged
irfan merged 1 commits from development into production 2024-12-22 05:55:53 +07:00
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ export class RegisterQueueManager extends BaseCreateManager<QueueModel> {
async afterProcess(): Promise<void> { async afterProcess(): Promise<void> {
const notificationService = new WhatsappService(); const notificationService = new WhatsappService();
const item = this.currentItemMaster ?? (await this.getItemMaster()); const item = this.currentItemMaster ?? (await this.getItemMaster());
if (!item.use_notification) return;
const queueTicket = await this.dataService.queueTicket(this.result.id); const queueTicket = await this.dataService.queueTicket(this.result.id);
const payload: WhatsappQueue = { const payload: WhatsappQueue = {