Import path fix
This commit is contained in:
@@ -230,20 +230,24 @@ class Host extends Table{
|
||||
|
||||
async checkWildcardForRenew(){
|
||||
try{
|
||||
console.log(`Checking ${this.host}`);
|
||||
if(this.is_wildcard && Date.now() > this.wildcard_expires - (30 * 24 * 60 * 60 * 1000)){
|
||||
this.createWildcardCert();
|
||||
}
|
||||
}catch(error){
|
||||
console.error('checkWildcardForRenew instance', this.host, error)
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
static async checkWildcardForRenew(){
|
||||
try{
|
||||
console.log('checkWildcardForRenew here', this)
|
||||
for(let host of await this.listDetail()){
|
||||
host.createWildcardCert();
|
||||
}
|
||||
}catch(error){
|
||||
console.error('checkWildcardForRenew', error)
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user