fix(ssl): server id

This commit is contained in:
peaklabs-dev
2025-02-07 18:45:12 +01:00
parent bd33f65c0a
commit a539bfd765
6 changed files with 7 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ class StartMysql
$this->commands[] = "mkdir -p $this->configuration_dir/ssl";
$server = $this->database->destination->server;
$caCert = SslCertificate::where('server_id', $server->server_id)->where('is_ca_certificate', true)->first();
$caCert = SslCertificate::where('server_id', $server->id)->where('is_ca_certificate', true)->first();
$this->ssl_certificate = SslCertificate::where('resource_type', $this->database->getMorphClass())->where('resource_id', $this->database->id)->first();