@xuda.io/drive_module 1.1.667 → 1.1.669

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1902,6 +1902,7 @@ exports.search_drive_files = async function (req) {
1902
1902
  file_ext,
1903
1903
  type,
1904
1904
  tags = [],
1905
+ limit = 100,
1905
1906
  } = req;
1906
1907
  try {
1907
1908
  validate_drive_type(drive_type);
@@ -1909,6 +1910,7 @@ exports.search_drive_files = async function (req) {
1909
1910
  if (!search_name && !search_string && !tags?.length) {
1910
1911
  throw new Error("search to broad");
1911
1912
  }
1913
+
1912
1914
  var search_results = [];
1913
1915
 
1914
1916
  let selector = {
@@ -1964,7 +1966,7 @@ exports.search_drive_files = async function (req) {
1964
1966
 
1965
1967
  var opt = {
1966
1968
  selector,
1967
- limit: 100,
1969
+ limit,
1968
1970
  fields: ["originalname", "date_created", "server_file_name", "is_folder"],
1969
1971
  };
1970
1972
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.667",
3
+ "version": "1.1.669",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {