@xuda.io/drive_module 1.1.607 → 1.1.609

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1379,6 +1379,8 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1379
1379
  const originalname = path.basename(file_obj.originalname);
1380
1380
  const tempPath = file_obj.path;
1381
1381
 
1382
+ const { code, data } = module.exports.check_drive_file({});
1383
+
1382
1384
  if (
1383
1385
  ![..._conf.allowedExts_drive, ..._conf.archive_drive_ext].includes(ext)
1384
1386
  ) {
@@ -1575,10 +1577,10 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1575
1577
  switch (drive_type) {
1576
1578
  case "studio":
1577
1579
  case "workspace": {
1580
+ master_app_id = await _common.get_project_app_id(app_id, true);
1578
1581
  }
1579
1582
 
1580
1583
  case "studio": {
1581
- master_app_id = await _common.get_project_app_id(app_id, true);
1582
1584
  const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
1583
1585
  // file_name = path.join(file_path.replace(target_dir, ""), originalname);
1584
1586
  target_file = path.join(
@@ -1596,8 +1598,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1596
1598
  break;
1597
1599
  }
1598
1600
  case "workspace": {
1599
- master_app_id = await _common.get_project_app_id(req.app_id, true);
1600
-
1601
1601
  const workspace_drive_res = await db_module.find_app_couch_query(
1602
1602
  master_app_id,
1603
1603
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.607",
3
+ "version": "1.1.609",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {