|
@@ -10,7 +10,7 @@ const API = require('./lib/API');
|
|
|
const mail = require('./notification.js')
|
|
|
|
|
|
let info = {
|
|
|
- followers: 1,
|
|
|
+ followers: 99999,
|
|
|
companyID: 991997, // spirit_3 company page
|
|
|
orgaName: "spirit_3",
|
|
|
tokens: null,
|
|
@@ -24,10 +24,6 @@ if (process.env.access_token) {
|
|
|
info.active = true
|
|
|
}
|
|
|
if (process.env.expire) info.expire = process.env.expire
|
|
|
-//if (process.env.usermail) mail.notif(process.env.usermail, process.env.pswd, process.env.contact);
|
|
|
-
|
|
|
-console.log("[process env TOKEN] =>", process.env.access_token);
|
|
|
-console.log("[process env expire] =>", process.env.expire);
|
|
|
|
|
|
async function watchLinkedin(){
|
|
|
if (info.active){
|
|
@@ -42,7 +38,7 @@ async function watchLinkedin(){
|
|
|
}
|
|
|
|
|
|
}).catch( (err) => {
|
|
|
- console.log("[watchLinkedin]", err);
|
|
|
+ console.log("[DEBUG-LOG][watchLinkedin]", err);
|
|
|
info.error++
|
|
|
if (info.error > 50) {
|
|
|
info.active = false
|