@xuda.io/drive_module 1.1.844 → 1.1.845

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 +2 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1478,12 +1478,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1478
1478
  const workspace_drive_res = await db_module.find_app_couch_query(
1479
1479
  master_app_id,
1480
1480
  {
1481
- selector: {
1482
- docType: "workspace_drive",
1483
- originalname: path.basename(file_path),
1484
- file_path: path.dirname(file_path),
1485
- stat: 3,
1486
- },
1481
+ selector,
1487
1482
  limit: 99,
1488
1483
  }
1489
1484
  );
@@ -1500,13 +1495,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1500
1495
  case "user": {
1501
1496
  selector.docType = "user_drive";
1502
1497
  const user_drive_res = await db_module.find_couch_query("xuda_drive", {
1503
- selector: {
1504
- docType: "user_drive",
1505
- originalname: path.basename(file_path),
1506
- file_path: path.dirname(file_path),
1507
- uid,
1508
- stat: 3,
1509
- },
1498
+ selector,
1510
1499
  limit: 99,
1511
1500
  });
1512
1501
  if (user_drive_res.docs.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.844",
3
+ "version": "1.1.845",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {