Skip to content

Commit fc1adb6

Browse files
committed
Fix regression of null domains in db creates
1 parent a6b7a7d commit fc1adb6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/models/certificate.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class Certificate extends Model {
3838
// Default for domain_names
3939
if (typeof this.domain_names !== "undefined") {
4040
this.domain_names = cleanDomainNames(this.domain_names);
41+
} else {
42+
this.domain_names = [];
4143
}
4244

4345
// Default for meta

0 commit comments

Comments
 (0)