fix: error when send to null phone number #120

Merged
irfan merged 1 commits from development into production 2024-12-24 21:27:30 +00:00
1 changed files with 6 additions and 3 deletions

View File

@ -91,9 +91,12 @@ export class RegisterQueueManager extends BaseCreateManager<QueueModel> {
item_name: item.name, item_name: item.name,
time: this.result.time, time: this.result.time,
}; };
notificationService.queueRegister(payload);
const currentTime = moment().valueOf(); if (payload.phone) {
this.dataService.updateLastNotification(this.result.id, currentTime); notificationService.queueRegister(payload);
const currentTime = moment().valueOf();
this.dataService.updateLastNotification(this.result.id, currentTime);
}
return; return;
} }