fix: register queue still sen notification
continuous-integration/drone/push Build is passing Details

pull/118/head
shancheas 2024-12-22 05:42:28 +07:00
parent d7ed77934d
commit 26a6af2044
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 = {