diff --git a/app/Jobs/PushNotificationPipeline/LikePushNotifyPipeline.php b/app/Jobs/PushNotificationPipeline/LikePushNotifyPipeline.php new file mode 100644 index 000000000..892624b5a --- /dev/null +++ b/app/Jobs/PushNotificationPipeline/LikePushNotifyPipeline.php @@ -0,0 +1,38 @@ +pushToken = $pushToken; + $this->actor = $actor; + } + + /** + * Execute the job. + */ + public function handle(): void + { + try { + NotificationAppGatewayService::send($this->pushToken, 'like', $this->actor); + } catch (Exception $e) { + return; + } + } +}