@xuda.io/drive_module 1.1.669 → 1.1.671

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 +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1964,6 +1964,12 @@ exports.search_drive_files = async function (req) {
1964
1964
  };
1965
1965
  }
1966
1966
 
1967
+ if (tags?.length) {
1968
+ selector.tags = {
1969
+ $in: tags,
1970
+ };
1971
+ }
1972
+
1967
1973
  var opt = {
1968
1974
  selector,
1969
1975
  limit,
@@ -1975,7 +1981,7 @@ exports.search_drive_files = async function (req) {
1975
1981
  return {
1976
1982
  name: doc.originalname,
1977
1983
  path: doc.server_file_name,
1978
- type: type || doc.is_folder ? "directory" : "file",
1984
+ type: doc.is_folder ? "directory" : "file", //type ||
1979
1985
  };
1980
1986
  });
1981
1987
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.669",
3
+ "version": "1.1.671",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {