@xuda.io/drive_module 1.1.1013 → 1.1.1014
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 +14 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -158,21 +158,22 @@ exports.get_drive_files = async function (req) {
|
|
|
158
158
|
.filter((e) => !e.includes(":"))
|
|
159
159
|
.filter((e) => e)
|
|
160
160
|
.join(" ");
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
if (mix_conditions) {
|
|
162
|
+
tags_query.$or = [
|
|
163
|
+
...tags_query.$or,
|
|
164
|
+
{
|
|
165
|
+
ocr: {
|
|
166
|
+
$regex: `(?i)${new_search}`,
|
|
167
|
+
},
|
|
167
168
|
},
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
{
|
|
170
|
+
originalname: {
|
|
171
|
+
$regex: `(?i)${new_search}`,
|
|
172
|
+
},
|
|
172
173
|
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
];
|
|
175
|
+
opt.selector = { ...opt.selector, ...tags_query };
|
|
176
|
+
}
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
if (tags?.length) {
|