fix bug
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
config.json
|
config.json
|
||||||
node_modules
|
node_modules
|
||||||
|
package-lock.json
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const runUpdateDNS = async() => {
|
|||||||
for (let j in config.domain) {
|
for (let j in config.domain) {
|
||||||
if (config.domain[j].name == tmp.name) {
|
if (config.domain[j].name == tmp.name) {
|
||||||
config.domain[j].id = tmp.id;
|
config.domain[j].id = tmp.id;
|
||||||
console.log(`${Date.now()} - get domain ${config.domain[i].name} id: ${tmp.id}`);
|
console.log(`${Date.now()} - get domain ${config.domain[j].name} id: ${tmp.id}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,4 +104,4 @@ const runUpdateDNS = async() => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
runUpdateDNS();
|
runUpdateDNS();
|
||||||
setInterval(() => runUpdateDNS(), 300000);
|
setInterval(() => runUpdateDNS(), 300000);
|
||||||
|
|||||||
Reference in New Issue
Block a user