@xuda.io/drive_module 1.1.663 → 1.1.665

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
@@ -1901,14 +1901,15 @@ exports.search_drive_files = async function (req) {
1901
1901
  mime_type,
1902
1902
  file_ext,
1903
1903
  type,
1904
+ tags,
1904
1905
  } = req;
1905
1906
  try {
1906
1907
  validate_drive_type(drive_type);
1907
1908
 
1908
- var search_results = [];
1909
+ if (!search_name && !search_string && !tags?.length)
1910
+ var search_results = [];
1909
1911
 
1910
1912
  let selector = {
1911
- type: "file",
1912
1913
  docType: `${drive_type}_drive`,
1913
1914
  stat: 3,
1914
1915
  $and: [],
@@ -1961,7 +1962,7 @@ exports.search_drive_files = async function (req) {
1961
1962
 
1962
1963
  var opt = {
1963
1964
  selector,
1964
- limit: 10,
1965
+ limit: 100,
1965
1966
  fields: ["originalname", "date_created", "server_file_name", "is_folder"],
1966
1967
  };
1967
1968
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.663",
3
+ "version": "1.1.665",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {