fix(ssl): server id

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

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ class StartPostgresql
$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();