Merge pull request 'fix: register queue still sen notification' (#118) from development into production
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

Reviewed-on: #118
production 1.4.0-production.2
irfan 2024-12-21 22:55:53 +00:00
commit 3aee1fdfc9
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> {
const notificationService = new WhatsappService();
const item = this.currentItemMaster ?? (await this.getItemMaster());
if (!item.use_notification) return;
const queueTicket = await this.dataService.queueTicket(this.result.id);
const payload: WhatsappQueue = {