Minor fixes

This commit is contained in:
David Bomba 2021-11-07 21:23:44 +11:00
parent 6e06e7d1f2
commit dd834f1405
3 changed files with 5 additions and 3 deletions

View File

@ -31,6 +31,7 @@ class SubdomainController extends BaseController
'cname',
'sandbox',
'stage',
'html',
];
public function __construct()

View File

@ -127,8 +127,8 @@ class WebhookHandler implements ShouldQueue
$this->company
);
// if ($response->getStatusCode() == 410 || $response->getStatusCode() == 200)
// return true;// $subscription->delete();
// if ($response->getStatusCode() == 410)
// return true; $subscription->delete();
}
catch(\Exception $e){

View File

@ -65,9 +65,10 @@ class SupportMessageSent extends Mailable
$is_large = $company->is_large ? "L" : "S";
$platform = array_key_exists('platform', $this->data) ? $this->data['platform'] : "U";
$migrated = strlen($company->company_key) == 32 ? "M" : "";
$trial = $account->isTrial() ? "T" : "";
if(Ninja::isHosted())
$subject = "{$priority}Hosted-{$db}-{$is_large}{$platform}{$migrated} :: {$plan} :: ".date('M jS, g:ia');
$subject = "{$priority}Hosted-{$db}-{$is_large}{$platform}{$migrated}{$trial} :: {$plan} :: ".date('M jS, g:ia');
else
$subject = "{$priority}Self Hosted :: {$plan} :: {$is_large}{$platform}{$migrated} :: ".date('M jS, g:ia');