remove domain_names.sort() and trailing spaces
This commit is contained in:
parent
9baaef45dd
commit
58d28b9867
27 changed files with 56 additions and 82 deletions
|
@ -27,17 +27,10 @@ class Certificate extends Model {
|
||||||
if (typeof this.meta === 'undefined') {
|
if (typeof this.meta === 'undefined') {
|
||||||
this.meta = {};
|
this.meta = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$beforeUpdate () {
|
$beforeUpdate () {
|
||||||
this.modified_on = now();
|
this.modified_on = now();
|
||||||
|
|
||||||
// Sort domain_names
|
|
||||||
if (typeof this.domain_names !== 'undefined') {
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get name () {
|
static get name () {
|
||||||
|
|
|
@ -23,17 +23,10 @@ class DeadHost extends Model {
|
||||||
if (typeof this.meta === 'undefined') {
|
if (typeof this.meta === 'undefined') {
|
||||||
this.meta = {};
|
this.meta = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$beforeUpdate () {
|
$beforeUpdate () {
|
||||||
this.modified_on = now();
|
this.modified_on = now();
|
||||||
|
|
||||||
// Sort domain_names
|
|
||||||
if (typeof this.domain_names !== 'undefined') {
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get name () {
|
static get name () {
|
||||||
|
|
|
@ -24,17 +24,10 @@ class ProxyHost extends Model {
|
||||||
if (typeof this.meta === 'undefined') {
|
if (typeof this.meta === 'undefined') {
|
||||||
this.meta = {};
|
this.meta = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$beforeUpdate () {
|
$beforeUpdate () {
|
||||||
this.modified_on = now();
|
this.modified_on = now();
|
||||||
|
|
||||||
// Sort domain_names
|
|
||||||
if (typeof this.domain_names !== 'undefined') {
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get name () {
|
static get name () {
|
||||||
|
|
|
@ -30,11 +30,6 @@ class RedirectionHost extends Model {
|
||||||
|
|
||||||
$beforeUpdate () {
|
$beforeUpdate () {
|
||||||
this.modified_on = now();
|
this.modified_on = now();
|
||||||
|
|
||||||
// Sort domain_names
|
|
||||||
if (typeof this.domain_names !== 'undefined') {
|
|
||||||
this.domain_names.sort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get name () {
|
static get name () {
|
||||||
|
|
Loading…
Reference in a new issue