added the 'limits' param for company search

This commit is contained in:
2024-05-11 06:01:39 -07:00
parent 5ff71b90e8
commit 09e2d79c28
3 changed files with 21 additions and 13 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ 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', [10, 500, 5000], 0, true, true);
const c = await LAPI.searchCompanies('microsoft', [10, 500, 5000], 20, 0, true, true);
console.log(c);
const managers = await c.find(o => (o.name === 'Microsoft')).searchEmployees('manager', 5);