feat: public database

This commit is contained in:
Andras Bacsai
2023-09-07 13:23:34 +02:00
parent db5ecf07bd
commit 77e3208f00
9 changed files with 132 additions and 6 deletions

View File

@@ -42,8 +42,13 @@ class Heading extends Component
["docker rm -f {$this->database->uuid}"],
$this->database->destination->server
);
if ($this->database->is_public) {
stopPostgresProxy($this->database);
$this->database->is_public = false;
}
$this->database->status = 'stopped';
$this->database->save();
$this->emit('refresh');
// $this->database->environment->project->team->notify(new StatusChanged($this->database));
}