thinkncollab-cli 0.0.19 → 0.0.20
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 +12 -5
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -265,12 +265,19 @@ async function push(roomId, targetPath) {
|
|
|
265
265
|
console.log("🚀 Uploading to Cloudinary...");
|
|
266
266
|
const uploadedTree = await uploadTree(contentWithChanges, folderHex, roomId, token, email);
|
|
267
267
|
|
|
268
|
-
console.log("🗂️ Sending metadata
|
|
268
|
+
console.log("🗂️ Sending metadata:", {
|
|
269
|
+
folderId: folderHex,
|
|
270
|
+
content: uploadedTree,
|
|
271
|
+
uploadedBy: email,
|
|
272
|
+
projectId
|
|
273
|
+
});
|
|
274
|
+
|
|
269
275
|
await axios.post(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
276
|
+
`${BASE_URL}/${roomId}/upload`,
|
|
277
|
+
{ folderId: folderHex, content: uploadedTree, uploadedBy: email, projectId },
|
|
278
|
+
{ headers: { authorization: `Bearer ${token}`, email } }
|
|
279
|
+
);
|
|
280
|
+
|
|
274
281
|
|
|
275
282
|
console.log("✅ Upload complete! Metadata stored successfully.");
|
|
276
283
|
|