Import path fix

This commit is contained in:
2026-02-25 12:35:21 -05:00
parent b522e5064a
commit 0a63e05028
8 changed files with 14 additions and 129 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
const crypto = require("crypto");
const conf = require('@simpleworkjs/conf');
const Table = require('../utils/redis_model');
const Table = require('.');
const ModelPs = require('../utils/model_pubsub');
const tldExtract = require('tld-extract').parse_host;
+4
View File
@@ -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;
}
}
+4 -1
View File
@@ -1,6 +1,9 @@
'use strict';
const conf = require('@simpleworkjs/conf');
const {setUpTable} = require('model-redis');
const Table = setUpTable(conf.redis);
const Table = require('../utils/redis_model');
module.exports = Table;
require('./dns_provider');
+1 -1
View File
@@ -1,6 +1,6 @@
'use strict';
const Table = require('../utils/redis_model');
const Table = require('.');
const bcrypt = require('bcrypt');
const saltRounds = 10;