missing new line in logs

This commit is contained in:
Miodec 2021-08-07 13:58:50 +01:00
parent debee5bd5e
commit c4c236a691

View file

@ -217,13 +217,13 @@ async function migrateUsers() {
);
fs.appendFileSync(
"log_success.txt",
`${uid} ${userData.name} ${total}`,
`${uid} ${userData.name} ${total} \n`,
"utf8"
);
} catch (err) {
console.log(`${uid} failed`);
console.log(err);
fs.appendFileSync("log_failed.txt", `${uid} ${err.message}`, "utf8");
fs.appendFileSync("log_failed.txt", `${uid} ${err.message} \n`, "utf8");
}
fs.writeFileSync("lastId.txt", uid, "utf8");
let userend = performance.now();