mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-05-14 22:06:54 +00:00
return employee fix
This commit is contained in:
+4
-1
@@ -241,7 +241,10 @@ export default class linkedInAPIClass {
|
||||
const r = await this._makeReq(urlExt);
|
||||
|
||||
// there's nothing left, returns what we have
|
||||
if (!r?.included?.length) return empAll;
|
||||
if (!r?.included?.length) {
|
||||
if (!castToClass) return empAll;
|
||||
else return empAll.map(o => new LinkedInProfile(o, this));
|
||||
}
|
||||
|
||||
// profiles with no info can be useless
|
||||
const filtered = r.included.filter(e => {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"name": "linkedin-api-js",
|
||||
"version": "1.0.0-10",
|
||||
"version": "1.0.0-11",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
||||
Reference in New Issue
Block a user