refactor(database): streamline event listeners in Redis General component
This commit is contained in:
@@ -15,11 +15,6 @@ use Livewire\Component;
|
|||||||
|
|
||||||
class General extends Component
|
class General extends Component
|
||||||
{
|
{
|
||||||
protected $listeners = [
|
|
||||||
'envsUpdated' => 'refresh',
|
|
||||||
'refresh',
|
|
||||||
];
|
|
||||||
|
|
||||||
public Server $server;
|
public Server $server;
|
||||||
|
|
||||||
public StandaloneRedis $database;
|
public StandaloneRedis $database;
|
||||||
@@ -42,7 +37,8 @@ class General extends Component
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
"echo-private:user.{$userId},DatabaseStatusChanged" => '$refresh',
|
"echo-private:user.{$userId},DatabaseStatusChanged" => '$refresh',
|
||||||
'refresh' => '$refresh',
|
'envsUpdated' => 'refresh',
|
||||||
|
'refresh',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user