refactor(database): streamline event listeners in Redis General component

This commit is contained in:
Andras Bacsai
2025-03-26 18:30:52 +01:00
parent d6d16f3844
commit 44bf3f4ee3

View File

@@ -15,11 +15,6 @@ use Livewire\Component;
class General extends Component
{
protected $listeners = [
'envsUpdated' => 'refresh',
'refresh',
];
public Server $server;
public StandaloneRedis $database;
@@ -42,7 +37,8 @@ class General extends Component
return [
"echo-private:user.{$userId},DatabaseStatusChanged" => '$refresh',
'refresh' => '$refresh',
'envsUpdated' => 'refresh',
'refresh',
];
}