thinkncollab-cli 0.0.62 → 0.0.63
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/bin/index.js +4 -3
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import sendInvite from '../commands/sendInvite.js'
|
|
|
20
20
|
|
|
21
21
|
const RC_FILE = path.join(os.homedir(), ".tncrc");
|
|
22
22
|
const VERSION_FILE = path.join(process.cwd(), ".tncversions");
|
|
23
|
-
const BASE_URL = "
|
|
23
|
+
const BASE_URL = "http://localhost:3001/rooms";
|
|
24
24
|
const CWD = process.cwd();
|
|
25
25
|
|
|
26
26
|
/** ------------------ LOGIN ------------------ **/
|
|
@@ -368,7 +368,7 @@ async function push(roomId, targetPath) {
|
|
|
368
368
|
const uploadedTree = await uploadTree(contentWithChanges, folderHex, roomId, token, email, previousVersions);
|
|
369
369
|
|
|
370
370
|
console.log("🗂️ Sending metadata...");
|
|
371
|
-
|
|
371
|
+
const res = await axios.post(
|
|
372
372
|
`${BASE_URL}/${roomId}/upload`,
|
|
373
373
|
{ folderId: folderHex, content: uploadedTree, uploadedBy: email, projectId },
|
|
374
374
|
{ headers: { authorization: `Bearer ${token}`, email } }
|
|
@@ -402,7 +402,8 @@ async function push(roomId, targetPath) {
|
|
|
402
402
|
pushedAt: new Date().toISOString(),
|
|
403
403
|
roomId: roomId,
|
|
404
404
|
pushedBy: email,
|
|
405
|
-
projectId: projectId
|
|
405
|
+
projectId: projectId,
|
|
406
|
+
folderId: res.folderId
|
|
406
407
|
};
|
|
407
408
|
|
|
408
409
|
|