mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-21 23:21:23 +00:00
refactor: replace direct SslCertificate queries with server relationship methods for consistency
This commit is contained in:
@@ -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