@xuda.io/drive_module 1.1.666 → 1.1.668
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 +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1909,6 +1909,7 @@ exports.search_drive_files = async function (req) {
|
|
|
1909
1909
|
if (!search_name && !search_string && !tags?.length) {
|
|
1910
1910
|
throw new Error("search to broad");
|
|
1911
1911
|
}
|
|
1912
|
+
|
|
1912
1913
|
var search_results = [];
|
|
1913
1914
|
|
|
1914
1915
|
let selector = {
|
|
@@ -2051,7 +2052,11 @@ exports.search_drive_files = async function (req) {
|
|
|
2051
2052
|
data: search_results,
|
|
2052
2053
|
};
|
|
2053
2054
|
} catch (err) {
|
|
2054
|
-
return err.message;
|
|
2055
|
+
// return err.message;
|
|
2056
|
+
return {
|
|
2057
|
+
code: -200,
|
|
2058
|
+
data: err.message,
|
|
2059
|
+
};
|
|
2055
2060
|
}
|
|
2056
2061
|
};
|
|
2057
2062
|
|