Fixed missing path and await.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user