Fix EINVAL on install page when token was just created

This commit is contained in:
yflory 2024-06-25 11:29:13 +02:00
parent b17b2c5cd4
commit 307a3f4c5c

View file

@ -51,6 +51,8 @@ nThen(function (w) {
let decree = ["ADD_INSTALL_TOKEN",[token],"",+new Date()];
Fs.appendFile(decreeName, JSON.stringify(decree) + '\n', w(function (err) {
if (err) { console.log(err); return; }
Env.installToken = token;
Env.envUpdated.fire();
printLink();
}));
}).nThen(function () {