Fixed host put on frontend
This commit is contained in:
@@ -246,7 +246,6 @@ 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();
|
||||
}
|
||||
@@ -258,7 +257,6 @@ class Host extends Table{
|
||||
|
||||
static async checkWildcardForRenew(){
|
||||
try{
|
||||
console.log('checkWildcardForRenew here', this)
|
||||
for(let host of await this.listDetail()){
|
||||
host.createWildcardCert();
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
</div>
|
||||
|
||||
<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 }}}
|
||||
<input type="hidden" name="edit_host" />
|
||||
<button type="submit" data-type="edit" class="btn btn-warning">
|
||||
|
||||
Reference in New Issue
Block a user