@xuda.io/drive_module 1.1.542 → 1.1.544
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1333,7 +1333,7 @@ exports.delete_file_bulk = async function (req) {
|
|
|
1333
1333
|
|
|
1334
1334
|
exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
1335
1335
|
try {
|
|
1336
|
-
const { drive_type, app_id, uid, make_public } = req;
|
|
1336
|
+
const { drive_type, app_id, uid, make_public, override } = req;
|
|
1337
1337
|
|
|
1338
1338
|
/// validations
|
|
1339
1339
|
validate_drive_type(drive_type);
|
|
@@ -1486,11 +1486,11 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1486
1486
|
let file_url = `https://${
|
|
1487
1487
|
process.env.XUDA_HOSTNAME
|
|
1488
1488
|
}/${drive_type}-drive/${ref}${
|
|
1489
|
-
file_name.substr(0, 1)
|
|
1489
|
+
file_name.substr(0, 1) !== "/" ? "/" : ""
|
|
1490
1490
|
}${file_name}`;
|
|
1491
1491
|
if (["workspace"].includes(req.drive_type)) {
|
|
1492
1492
|
file_url = `https://${process.env.XUDA_HOSTNAME}/workspace-drive${
|
|
1493
|
-
file_name.substr(0, 1)
|
|
1493
|
+
file_name.substr(0, 1) !== "/" ? "/" : ""
|
|
1494
1494
|
}${file_name}`;
|
|
1495
1495
|
}
|
|
1496
1496
|
|