diff --git a/.gitignore b/.gitignore index 95b863a..9d1d7ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ config.json node_modules +package-lock.json diff --git a/app.js b/app.js index 23ea71e..73f4a6d 100644 --- a/app.js +++ b/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); \ No newline at end of file +setInterval(() => runUpdateDNS(), 300000);