From 1e92e3fe3a670e1030f721f988f39f4383addfaf Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 7 Oct 2022 11:49:00 +1100 Subject: [PATCH 1/3] Domain Failure renewal --- .../DomainRenewalFailureNotification.php | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 app/Notifications/Ninja/DomainRenewalFailureNotification.php diff --git a/app/Notifications/Ninja/DomainRenewalFailureNotification.php b/app/Notifications/Ninja/DomainRenewalFailureNotification.php new file mode 100644 index 000000000000..44eb7255e5ec --- /dev/null +++ b/app/Notifications/Ninja/DomainRenewalFailureNotification.php @@ -0,0 +1,86 @@ +domain = $domain; + } + + /** + * Get the notification's delivery channels. + * + * @param mixed $notifiable + * @return array + */ + public function via($notifiable) + { + return ['slack']; + } + + /** + * Get the mail representation of the notification. + * + * @param mixed $notifiable + * @return MailMessage + */ + public function toMail($notifiable) + { + } + + /** + * Get the array representation of the notification. + * + * @param mixed $notifiable + * @return array + */ + public function toArray($notifiable) + { + return [ + // + ]; + } + + public function toSlack($notifiable) + { + $content = "Domain Certificate _renewal_ failure:\n"; + $content .= "{$this->domain}\n"; + + return (new SlackMessage) + ->success() + ->from(ctrans('texts.notification_bot')) + ->image('https://app.invoiceninja.com/favicon.png') + ->content($content); + } +} From f5a8b3d235bb51f847a0a5c4ea6a8e3cc80aa0f0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 7 Oct 2022 17:55:51 +1100 Subject: [PATCH 2/3] Add index to company tokens --- ...065455_add_key_to_company_tokens_table.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2022_10_07_065455_add_key_to_company_tokens_table.php diff --git a/database/migrations/2022_10_07_065455_add_key_to_company_tokens_table.php b/database/migrations/2022_10_07_065455_add_key_to_company_tokens_table.php new file mode 100644 index 000000000000..4811e76d33f1 --- /dev/null +++ b/database/migrations/2022_10_07_065455_add_key_to_company_tokens_table.php @@ -0,0 +1,30 @@ +index('token'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + + } +}; From b08febaf87ac0caae99833e0ec9f14b3c7863fd9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 8 Oct 2022 20:37:43 +1100 Subject: [PATCH 3/3] v5.5.29 --- VERSION.txt | 2 +- config/ninja.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index bd097b3f5b32..ee46351da47b 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.5.28 \ No newline at end of file +5.5.29 \ No newline at end of file diff --git a/config/ninja.php b/config/ninja.php index cd87907d3913..de1fd38ad08e 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.5.28', - 'app_tag' => '5.5.28', + 'app_version' => '5.5.29', + 'app_tag' => '5.5.29', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''),