fix: error when send to null phone number
continuous-integration/drone/push Build is passing Details

pull/120/head
shancheas 2024-12-25 04:26:12 +07:00
parent 903b7cfd18
commit 1692c8234a
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,
time: this.result.time,
};
notificationService.queueRegister(payload);
const currentTime = moment().valueOf();
this.dataService.updateLastNotification(this.result.id, currentTime);
if (payload.phone) {
notificationService.queueRegister(payload);
const currentTime = moment().valueOf();
this.dataService.updateLastNotification(this.result.id, currentTime);
}
return;
}