@xuda.io/drive_module 1.1.606 → 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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1573,8 +1573,12 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1573
1573
  var master_app_id;
1574
1574
 
1575
1575
  switch (drive_type) {
1576
- case "studio": {
1576
+ case "studio":
1577
+ case "workspace": {
1577
1578
  master_app_id = await _common.get_project_app_id(app_id, true);
1579
+ }
1580
+
1581
+ case "studio": {
1578
1582
  const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
1579
1583
  // file_name = path.join(file_path.replace(target_dir, ""), originalname);
1580
1584
  target_file = path.join(
@@ -1592,8 +1596,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1592
1596
  break;
1593
1597
  }
1594
1598
  case "workspace": {
1595
- master_app_id = await _common.get_project_app_id(req.app_id, true);
1596
-
1597
1599
  const workspace_drive_res = await db_module.find_app_couch_query(
1598
1600
  master_app_id,
1599
1601
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.606",
3
+ "version": "1.1.608",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {