|
@@ -43,7 +43,7 @@ var Linkedin = require('node-linkedin')(info.appID, info.secret, info.tokens.acc
|
|
|
|
|
|
function watchLinkedin(){
|
|
|
console.log("watchLinkedin function");
|
|
|
- if (info.active){
|
|
|
+ if (info.active && info.tokens.access_token){
|
|
|
// var linkedin = Linkedin.init();
|
|
|
|
|
|
// console.log(linkedin);
|
|
@@ -64,7 +64,7 @@ function watchLinkedin(){
|
|
|
console.log(response);
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
- console.log(error.response);
|
|
|
+ console.log(error);
|
|
|
console.log("error")
|
|
|
});
|
|
|
|