@xuda.io/drive_module 1.1.732 → 1.1.734

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 +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1913,7 +1913,7 @@ exports.search_drive_files = async function (req) {
1913
1913
  date_to,
1914
1914
  mime_type,
1915
1915
  file_ext,
1916
- type = "file",
1916
+ type,
1917
1917
  tags = [],
1918
1918
  } = req;
1919
1919
 
@@ -1935,6 +1935,10 @@ exports.search_drive_files = async function (req) {
1935
1935
  $and: [],
1936
1936
  };
1937
1937
 
1938
+ if (type) {
1939
+ selector.type = type;
1940
+ }
1941
+
1938
1942
  if (date_from || date_to) {
1939
1943
  if (date_to < date_from) {
1940
1944
  throw new Error("invalid date_from and date_to range");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.732",
3
+ "version": "1.1.734",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {