fix: register queue still sen notification
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d7ed77934d
commit
26a6af2044
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue