@xuda.io/drive_module 1.1.607 → 1.1.608
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 +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1575,10 +1575,10 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1575
1575
|
switch (drive_type) {
|
|
1576
1576
|
case "studio":
|
|
1577
1577
|
case "workspace": {
|
|
1578
|
+
master_app_id = await _common.get_project_app_id(app_id, true);
|
|
1578
1579
|
}
|
|
1579
1580
|
|
|
1580
1581
|
case "studio": {
|
|
1581
|
-
master_app_id = await _common.get_project_app_id(app_id, true);
|
|
1582
1582
|
const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
|
|
1583
1583
|
// file_name = path.join(file_path.replace(target_dir, ""), originalname);
|
|
1584
1584
|
target_file = path.join(
|
|
@@ -1596,8 +1596,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1596
1596
|
break;
|
|
1597
1597
|
}
|
|
1598
1598
|
case "workspace": {
|
|
1599
|
-
master_app_id = await _common.get_project_app_id(req.app_id, true);
|
|
1600
|
-
|
|
1601
1599
|
const workspace_drive_res = await db_module.find_app_couch_query(
|
|
1602
1600
|
master_app_id,
|
|
1603
1601
|
{
|