fix: don't send whatsapp notification when phone is null
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
762340a72b
commit
6911f6f0a2
|
@ -87,7 +87,10 @@ export class QueueAdminOrchestrator {
|
||||||
// },
|
// },
|
||||||
// ]);
|
// ]);
|
||||||
|
|
||||||
if (queueTicket.last_notification < currentTime - call_preparation) {
|
if (
|
||||||
|
queueTicket.item.ticket.phone != null &&
|
||||||
|
queueTicket.last_notification < currentTime - call_preparation
|
||||||
|
) {
|
||||||
await notification.queueProcess(payload);
|
await notification.queueProcess(payload);
|
||||||
this.service.updateLastNotification(queueId, currentTime);
|
this.service.updateLastNotification(queueId, currentTime);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue