thinkncollab-cli 0.0.56 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/myTask.js +2 -2
- package/package.json +1 -1
package/commands/myTask.js
CHANGED
|
@@ -4,7 +4,7 @@ import axios from "axios";
|
|
|
4
4
|
import os from "os";
|
|
5
5
|
|
|
6
6
|
const homeDir = os.homedir();
|
|
7
|
-
const url = "
|
|
7
|
+
const url = "https://thinkncollab.in/cli/mytasks"; // backend endpoint
|
|
8
8
|
|
|
9
9
|
// Get saved email from ~/.tncrc
|
|
10
10
|
async function getEmail() {
|
|
@@ -21,7 +21,7 @@ async function getEmail() {
|
|
|
21
21
|
}
|
|
22
22
|
async function getToken() {
|
|
23
23
|
const rcFile = path.join(homeDir, '.tncrc');
|
|
24
|
-
if(!
|
|
24
|
+
if(!fs.readFileSync(rcFile)){
|
|
25
25
|
console.log("⚠️ Please login first! ")
|
|
26
26
|
}
|
|
27
27
|
const content = fs.readFileSync(rcFile, 'utf-8');
|