@xuda.io/drive_module 1.1.872 → 1.1.874

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 +18 -18
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1725,7 +1725,7 @@ exports.search_drive_files = async function (req) {
1725
1725
 
1726
1726
  const protected_tags = ["tag:", "name:"];
1727
1727
  debugger;
1728
- if (protected_tags.some((e) => search_string.includes(e))) {
1728
+ if (search_string) {
1729
1729
  // var og_search = ""
1730
1730
  let tags_query = search_string
1731
1731
  .split(" ")
@@ -1830,23 +1830,23 @@ exports.search_drive_files = async function (req) {
1830
1830
  selector.file_ext = file_ext;
1831
1831
  }
1832
1832
 
1833
- if (req.search_string) {
1834
- selector = {
1835
- ...selector,
1836
- $or: [
1837
- {
1838
- ocr: {
1839
- $regex: `(?i)${req.search_string}`,
1840
- },
1841
- },
1842
- {
1843
- originalname: {
1844
- $regex: `(?i)${req.search_string}`,
1845
- },
1846
- },
1847
- ],
1848
- };
1849
- }
1833
+ // if (req.search_string) {
1834
+ // selector = {
1835
+ // ...selector,
1836
+ // $or: [
1837
+ // {
1838
+ // ocr: {
1839
+ // $regex: `(?i)${req.search_string}`,
1840
+ // },
1841
+ // },
1842
+ // {
1843
+ // originalname: {
1844
+ // $regex: `(?i)${req.search_string}`,
1845
+ // },
1846
+ // },
1847
+ // ],
1848
+ // };
1849
+ // }
1850
1850
 
1851
1851
  if (tags?.length) {
1852
1852
  selector.tags = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.872",
3
+ "version": "1.1.874",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {