Certificates into their own section

This commit is contained in:
Jamie Curnow committed 2018-08-07 20:27:20 +10:00
1 parent 1c57ccdc87
commit c749a22b52
41 files changed
+599 -385

No files matched your search

+5 -1
View File
@@ -13,6 +13,10 @@ class Certificate extends Model {
$beforeInsert () {
this.created_on = Model.raw('NOW()');
this.modified_on = Model.raw('NOW()');
if (typeof this.expires_on === 'undefined') {
this.expires_on = Model.raw('NOW()');
}
}
$beforeUpdate () {
@@ -28,7 +32,7 @@ class Certificate extends Model {
}
static get jsonAttributes () {
return ['meta'];
return ['domain_names', 'meta'];
}
static get relationMappings () {