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/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); + } +} 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', ''), 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() + { + + } +};