@xuda.io/drive_module 1.1.723 → 1.1.725

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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1653,7 +1653,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1653
1653
  switch (drive_type) {
1654
1654
  case "studio": {
1655
1655
  const target_dir = path.join(_conf[`studio_drive_path`], master_app_id);
1656
- // file_name = path.join(file_path.replace(target_dir, ""), originalname);
1656
+
1657
1657
  target_file = path.join(
1658
1658
  file_path !== "/" ? file_path : target_dir,
1659
1659
  file_name
@@ -1921,7 +1921,8 @@ exports.search_drive_files = async function (req) {
1921
1921
  validate_drive_type(drive_type);
1922
1922
 
1923
1923
  if (!search_name && !search_string && !tags?.length) {
1924
- throw new Error("search to broad");
1924
+ // throw new Error("search too broad");
1925
+ limit = 25;
1925
1926
  }
1926
1927
 
1927
1928
  var search_results = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.723",
3
+ "version": "1.1.725",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {