Certificates into their own section

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

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 () {