mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 16:15:37 +00:00
refactor: replace direct SslCertificate queries with server relationship methods for consistency
This commit is contained in:
1 parent
bf5c08d071
commit
f4e5c195fe
19 files changed
+27
-36
No files matched your search
@@ -45,7 +45,7 @@ class RegenerateSslCertJob implements ShouldQueue
|
||||
|
||||
$query->cursor()->each(function ($certificate) use ($regenerated) {
|
||||
try {
|
||||
$caCert = SslCertificate::where('server_id', $certificate->server_id)
|
||||
$caCert = $certificate->server->sslCertificates()
|
||||
->where('is_ca_certificate', true)
|
||||
->first();
|
||||
|
||||
|
||||
Reference in new issue
Block a user