|
@@ -28,7 +28,7 @@ if (process.env.expire) info.expire = process.env.expire
|
|
|
async function watchLinkedin(){
|
|
|
if (info.active){
|
|
|
|
|
|
- await API.getCompanyFollowers(info).then( (followersNb) => {
|
|
|
+ API.getCompanyFollowers(info).then( (followersNb) => {
|
|
|
|
|
|
if (followersNb.firstDegreeSize) {
|
|
|
info.followers = followersNb.firstDegreeSize
|
|
@@ -38,7 +38,7 @@ async function watchLinkedin(){
|
|
|
}
|
|
|
|
|
|
}).catch( (err) => {
|
|
|
- console.log("[DEBUG-LOG][watchLinkedin]", err);
|
|
|
+ console.log("[DEBUG-LOG][watchLinkedin ERROR]", err);
|
|
|
info.error++
|
|
|
if (info.error > 50) {
|
|
|
info.active = false
|