mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-24 23:23:15 +01:00
Fix certificates getting null domain names whgen no cn exists
This commit is contained in:
1 parent
1e22574000
commit
84886383a7
2 files changed
+2
-2
No files matched your search
@@ -614,7 +614,7 @@ const internalCertificate = {
|
||||
const certificate = await internalCertificate.update(access, {
|
||||
id: data.id,
|
||||
expires_on: moment(validations.certificate.dates.to, "X").format("YYYY-MM-DD HH:mm:ss"),
|
||||
domain_names: [validations.certificate.cn],
|
||||
domain_names: validations.certificate.cn ? [validations.certificate.cn] : [],
|
||||
meta: _.clone(row.meta), // Prevent the update method from changing this value that we'll use later
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user