fix: error when send to null phone number
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
903b7cfd18
commit
1692c8234a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue