Merge pull request 'fix: register queue still sen notification' (#118) from development into production
Reviewed-on: #118production 1.4.0-production.2
commit
3aee1fdfc9
|
@ -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