Browse Source

fix syntax

niemes 2 years ago
parent
commit
f136dbb1dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -68,8 +68,8 @@ async function watchLinkedin(){
                 // try refresh token 
                 const data = await API.getAccessToken(info.token)
 
-                if(!data.access_token) mail.notif();
-                else 
+                if (data.access_token) updateTokenEnv(data)
+                else mail.notif();
             }
         });
     }