@xuda.io/drive_module 1.1.603 → 1.1.604

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 +7 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1597,7 +1597,12 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1597
1597
  const workspace_drive_res = await db_module.find_app_couch_query(
1598
1598
  master_app_id,
1599
1599
  {
1600
- selector: { docType: "workspace_drive", file_name, stat: 3 },
1600
+ selector: {
1601
+ docType: "workspace_drive",
1602
+ file_name,
1603
+ file_path,
1604
+ stat: 3,
1605
+ },
1601
1606
  limit: 99,
1602
1607
  }
1603
1608
  );
@@ -1613,7 +1618,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1613
1618
  }
1614
1619
  case "user": {
1615
1620
  const user_drive_res = await db_module.find_couch_query("xuda_drive", {
1616
- selector: { docType: "user_drive", file_name, uid, stat: 3 },
1621
+ selector: { docType: "user_drive", file_name, file_path, uid, stat: 3 },
1617
1622
  limit: 99,
1618
1623
  });
1619
1624
  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.603",
3
+ "version": "1.1.604",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {