From c95e7577312a855f4e470596ff4411091b470b79 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 30 Sep 2024 05:00:12 -0600 Subject: [PATCH] Add LikePushNotificationPipeline --- .../LikePushNotifyPipeline.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 app/Jobs/PushNotificationPipeline/LikePushNotifyPipeline.php 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; + } + } +}