Fixed host put on frontend

This commit is contained in:
2026-02-25 19:45:09 -05:00
parent 427e9411e7
commit 1bacc17a12
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -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();
}
+1 -1
View File
@@ -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">