chore: remove unused $server property and add missing import

- Remove unused $server property and Server import from Advanced.php
- Add proper import for UpdateStripeCustomerEmailJob in User.php

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-01-01 15:42:21 +01:00
parent 8d212bc110
commit b33962bf82
2 changed files with 2 additions and 7 deletions

View File

@@ -3,15 +3,12 @@
namespace App\Livewire\Settings; namespace App\Livewire\Settings;
use App\Models\InstanceSettings; use App\Models\InstanceSettings;
use App\Models\Server;
use App\Rules\ValidIpOrCidr; use App\Rules\ValidIpOrCidr;
use Livewire\Attributes\Validate; use Livewire\Attributes\Validate;
use Livewire\Component; use Livewire\Component;
class Advanced extends Component class Advanced extends Component
{ {
public ?Server $server = null;
public InstanceSettings $settings; public InstanceSettings $settings;
#[Validate('boolean')] #[Validate('boolean')]
@@ -60,9 +57,6 @@ class Advanced extends Component
if (! isInstanceAdmin()) { if (! isInstanceAdmin()) {
return redirect()->route('dashboard'); return redirect()->route('dashboard');
} }
if (! isCloud()) {
$this->server = Server::findOrFail(0);
}
$this->settings = instanceSettings(); $this->settings = instanceSettings();
$this->custom_dns_servers = $this->settings->custom_dns_servers; $this->custom_dns_servers = $this->settings->custom_dns_servers;
$this->allowed_ips = $this->settings->allowed_ips; $this->allowed_ips = $this->settings->allowed_ips;

View File

@@ -2,6 +2,7 @@
namespace App\Models; namespace App\Models;
use App\Jobs\UpdateStripeCustomerEmailJob;
use App\Notifications\Channels\SendsEmail; use App\Notifications\Channels\SendsEmail;
use App\Notifications\TransactionalEmails\ResetPassword as TransactionalEmailsResetPassword; use App\Notifications\TransactionalEmails\ResetPassword as TransactionalEmailsResetPassword;
use App\Traits\DeletesUserSessions; use App\Traits\DeletesUserSessions;
@@ -437,7 +438,7 @@ class User extends Authenticatable implements SendsEmail
// For cloud users, dispatch job to update Stripe customer email asynchronously // For cloud users, dispatch job to update Stripe customer email asynchronously
$currentTeam = $this->currentTeam(); $currentTeam = $this->currentTeam();
if (isCloud() && $currentTeam?->subscription) { if (isCloud() && $currentTeam?->subscription) {
dispatch(new \App\Jobs\UpdateStripeCustomerEmailJob( dispatch(new UpdateStripeCustomerEmailJob(
$currentTeam, $currentTeam,
$this->id, $this->id,
$newEmail, $newEmail,