@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.
- package/index.js +3 -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
|
-
|
|
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
|
|
1924
|
+
// throw new Error("search too broad");
|
|
1925
|
+
limit = 25;
|
|
1925
1926
|
}
|
|
1926
1927
|
|
|
1927
1928
|
var search_results = [];
|