return employee fix

This commit is contained in:
2024-05-13 08:56:06 -07:00
parent 5de02dc163
commit 5da3eb99bd
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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
View File
@@ -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"