@xuda.io/drive_module 1.1.568 → 1.1.570

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 +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1560,8 +1560,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1560
1560
  case "workspace": {
1561
1561
  ref = await _common.get_project_app_id(req.app_id, true);
1562
1562
 
1563
- /// check existing file
1564
-
1565
1563
  const workspace_drive_res = await db_module.find_app_couch_query(app_id, {
1566
1564
  selector: { docType: "workspace_drive", originalname, stat: 3 },
1567
1565
  limit: 99,
@@ -1577,7 +1575,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1577
1575
  break;
1578
1576
  }
1579
1577
  case "user": {
1580
- /// check existing file
1581
1578
  const user_drive_res = await db_module.find_couch_query("drive", {
1582
1579
  selector: { docType: "user_drive", originalname, stat: 3 },
1583
1580
  limit: 99,
@@ -1594,6 +1591,10 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1594
1591
  }
1595
1592
 
1596
1593
  default:
1594
+ return {
1595
+ code: -764,
1596
+ data: "invalid method",
1597
+ };
1597
1598
  break;
1598
1599
  }
1599
1600
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.568",
3
+ "version": "1.1.570",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {