Fixed host put on frontend
This commit is contained in:
@@ -246,7 +246,6 @@ class Host extends Table{
|
|||||||
|
|
||||||
async checkWildcardForRenew(){
|
async checkWildcardForRenew(){
|
||||||
try{
|
try{
|
||||||
console.log(`Checking ${this.host}`);
|
|
||||||
if(this.is_wildcard && Date.now() > this.wildcard_expires - (30 * 24 * 60 * 60 * 1000)){
|
if(this.is_wildcard && Date.now() > this.wildcard_expires - (30 * 24 * 60 * 60 * 1000)){
|
||||||
this.createWildcardCert();
|
this.createWildcardCert();
|
||||||
}
|
}
|
||||||
@@ -258,7 +257,6 @@ class Host extends Table{
|
|||||||
|
|
||||||
static async checkWildcardForRenew(){
|
static async checkWildcardForRenew(){
|
||||||
try{
|
try{
|
||||||
console.log('checkWildcardForRenew here', this)
|
|
||||||
for(let host of await this.listDetail()){
|
for(let host of await this.listDetail()){
|
||||||
host.createWildcardCert();
|
host.createWildcardCert();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -274,7 +274,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form class="addHost" method="PUT" action="/host/{{ host }}" onsubmit="formAJAX(this)" evalAJAX="hostEditCancle()">
|
<form class="addHost" method="PUT" action="host/{{ host }}" onsubmit="formAJAX(this)" evalAJAX="hostEditCancle()">
|
||||||
{{{ form }}}
|
{{{ form }}}
|
||||||
<input type="hidden" name="edit_host" />
|
<input type="hidden" name="edit_host" />
|
||||||
<button type="submit" data-type="edit" class="btn btn-warning">
|
<button type="submit" data-type="edit" class="btn btn-warning">
|
||||||
|
|||||||
Reference in New Issue
Block a user