feat: fix messaging worker
This commit is contained in:
parent
e83cf382fd
commit
f6c7fdb8ed
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,8 @@ class MessagingV1 extends Worker
|
|||
'telesign' => new Telesign($user, $secret),
|
||||
default => null
|
||||
};
|
||||
|
||||
$this->from = App::getEnv('_APP_PHONE_FROM');
|
||||
}
|
||||
|
||||
public function run(): void
|
||||
|
@ -47,6 +49,11 @@ class MessagingV1 extends Worker
|
|||
return;
|
||||
}
|
||||
|
||||
if (!$this->from) {
|
||||
Console::info('Skipped sms processing. No phone number has been set.');
|
||||
return;
|
||||
}
|
||||
|
||||
$recipient = $this->args['recipient'];
|
||||
$message = $this->args['message'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue