We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2c05a commit a6b7a7dCopy full SHA for a6b7a7d
1 file changed
backend/models/certificate.js
@@ -36,7 +36,9 @@ class Certificate extends Model {
36
}
37
38
// Default for domain_names
39
- this.domain_names = cleanDomainNames(this.domain_names);
+ if (typeof this.domain_names !== "undefined") {
40
+ this.domain_names = cleanDomainNames(this.domain_names);
41
+ }
42
43
// Default for meta
44
if (typeof this.meta === "undefined") {
@@ -46,7 +48,9 @@ class Certificate extends Model {
46
48
47
49
$beforeUpdate() {
50
this.modified_on = now();
51
52
53
54
55
56
$parseDatabaseJson(json) {
0 commit comments