fix bug
This commit is contained in:
parent
a174601434
commit
ce500d71bb
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
config.json
|
||||
node_modules
|
||||
package-lock.json
|
||||
|
4
app.js
4
app.js
@ -59,7 +59,7 @@ const runUpdateDNS = async() => {
|
||||
for (let j in config.domain) {
|
||||
if (config.domain[j].name == tmp.name) {
|
||||
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();
|
||||
setInterval(() => runUpdateDNS(), 300000);
|
||||
setInterval(() => runUpdateDNS(), 300000);
|
||||
|
Loading…
Reference in New Issue
Block a user