@xuda.io/drive_module 1.1.668 → 1.1.670
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 +8 -1
- 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);
|
|
@@ -1963,9 +1964,15 @@ exports.search_drive_files = async function (req) {
|
|
|
1963
1964
|
};
|
|
1964
1965
|
}
|
|
1965
1966
|
|
|
1967
|
+
if (tags?.length) {
|
|
1968
|
+
selector.tags = {
|
|
1969
|
+
$in: tags,
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1966
1973
|
var opt = {
|
|
1967
1974
|
selector,
|
|
1968
|
-
limit
|
|
1975
|
+
limit,
|
|
1969
1976
|
fields: ["originalname", "date_created", "server_file_name", "is_folder"],
|
|
1970
1977
|
};
|
|
1971
1978
|
|