Merge branch 'master' of https://github.com/VishwaGauravIn/linkedin-jobs-api
This commit is contained in:
4
index.js
4
index.js
@@ -13,8 +13,8 @@ function Query(queryObj) {
|
||||
this.host = queryObj.host || "www.linkedin.com";
|
||||
|
||||
//api handles strings with spaces by replacing the values with %20
|
||||
this.keyword = queryObj.keyword.replace(" ", "+") || "";
|
||||
this.location = queryObj.location.replace(" ", "+") || "";
|
||||
this.keyword = queryObj.keyword?.replace(" ", "+") || "";
|
||||
this.location = queryObj.location?.replace(" ", "+") || "";
|
||||
this.dateSincePosted = queryObj.dateSincePosted || "";
|
||||
this.jobType = queryObj.jobType || "";
|
||||
this.remoteFilter = queryObj.remoteFilter || "";
|
||||
|
||||
Reference in New Issue
Block a user