Commit 60bc0108 authored by nanahira's avatar nanahira

add finish log

parent 1b749299
Pipeline #222 passed with stages
in 1 minute and 16 seconds
...@@ -27,17 +27,18 @@ async function main() { ...@@ -27,17 +27,18 @@ async function main() {
await fetcher.init(); await fetcher.init();
if (config.server) { if (config.server) {
await Promise.all(config.server.map(runServer)); await Promise.all(config.server.map(runServer));
return; } else {
const userListWithServer = await Promise.all(servers.map(runServer));
const allServersList: any = {};
for (let i = 0; i < servers.length;++i) {
allServersList[servers[i]] = userListWithServer[i];
}
await fs.promises.writeFile(`./output/all.json`, JSON.stringify({
date: fetcher.date,
data: allServersList
}, null, 2));
} }
const userListWithServer = await Promise.all(servers.map(runServer)); console.log("Finished.");
const allServersList: any = {};
for (let i = 0; i < servers.length;++i) {
allServersList[servers[i]] = userListWithServer[i];
}
await fs.promises.writeFile(`./output/all.json`, JSON.stringify({
date: fetcher.date,
data: allServersList
}, null, 2));
process.exit(); process.exit();
} }
main(); main();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment