1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

feat: fix messaging worker

This commit is contained in:
Christy Jacob 2022-06-28 15:32:59 +02:00
parent e83cf382fd
commit f6c7fdb8ed

View file

@ -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'];