Fixed missing path and await.

This commit is contained in:
2023-05-19 19:45:08 +02:00
parent b85b84f4b9
commit 331b110eb8
2 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ async function createAccount(driver) {
let accounts = [];
if (fs.existsSync(path.join(__dirname, '../accounts/accounts.json'))) {
const content = fs.readFileSync('accounts.json', 'utf8');
const content = fs.readFileSync(path.join(__dirname, '../accounts/accounts.json'), 'utf8');
accounts = JSON.parse(content);
}