Browse Source

fix syntax

niemes 2 năm trước cách đây
mục cha
commit
f136dbb1dd
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
             }
         });
     }