fix: db proxy status shown better in the UI

This commit is contained in:
Andras Bacsai
2024-06-14 14:09:56 +02:00
parent 49d91c498e
commit b17be37aee
3 changed files with 22 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Actions\Database;
use App\Events\DatabaseStatusChanged;
use App\Models\ServiceDatabase;
use App\Models\StandaloneClickhouse;
use App\Models\StandaloneDragonfly;
@@ -28,5 +29,6 @@ class StopDatabaseProxy
instant_remote_process(["docker rm -f {$uuid}-proxy"], $server);
$database->is_public = false;
$database->save();
DatabaseStatusChanged::dispatch();
}
}