From 7a312d075c08ab05234922640d332c18a2aec8cc Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 5 Mar 2025 11:59:35 +0000 Subject: [PATCH] Check for null on webhook url Signed-off-by: snipe --- app/Models/Setting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 8f8299a3c..199aee33d 100755 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -247,7 +247,7 @@ class Setting extends Model * * @return string */ - public function routeNotificationForSlack(): string + public function routeNotificationForSlack(): ?string { // At this point the endpoint is the same for everything. // In the future this may want to be adapted for individual notifications. @@ -259,7 +259,7 @@ class Setting extends Model * * @return string */ - public function routeNotificationForMail(): string + public function routeNotificationForMail(): ?string { // At this point the endpoint is the same for everything. // In the future this may want to be adapted for individual notifications.