member count scraping fix

This commit is contained in:
2024-05-13 15:21:06 -07:00
parent 2296d13654
commit ae600c4544
4 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ import fs from 'fs';
const o = JSON.parse(fs.readFileSync('config.json'));
await LAPI.login(o.email, o.password);
const c = await LAPI.searchCompanies('microsoft', [5001], 20, 0, true, true);
const c = (await LAPI.searchCompanies('microsoft', [5001], 20, 0, true, true)).find(o => (o.name === 'Microsoft'));
console.log(c);
const managers = await c.find(o => (o.name === 'Microsoft')).searchEmployees('manager', 5);
const managers = await c.searchEmployees('manager');
console.log(managers, managers.length);
})();