@xuda.io/drive_module 1.1.1124 → 1.1.1126
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 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -123,19 +123,21 @@ exports.get_drive_files = async function (req) {
|
|
|
123
123
|
.join(' ');
|
|
124
124
|
|
|
125
125
|
if (mix_conditions) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
if (new_search) {
|
|
127
|
+
tags_query.$or = [
|
|
128
|
+
...tags_query.$or,
|
|
129
|
+
{
|
|
130
|
+
ocr: {
|
|
131
|
+
$regex: `(?i)${new_search}`,
|
|
132
|
+
},
|
|
131
133
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
{
|
|
135
|
+
originalname: {
|
|
136
|
+
$regex: `(?i)${new_search}`,
|
|
137
|
+
},
|
|
136
138
|
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
];
|
|
140
|
+
}
|
|
139
141
|
opt.selector = { ...opt.selector, ...tags_query };
|
|
140
142
|
}
|
|
141
143
|
}
|
|
@@ -224,6 +226,7 @@ exports.get_drive_files = async function (req) {
|
|
|
224
226
|
return {
|
|
225
227
|
code: 1,
|
|
226
228
|
data: await fetch_drive_files(ret, file_doc, app_id_reference, null, app_obj.app_datacenter_id, app_obj.is_deployment ? app_obj.app_access_url : undefined),
|
|
229
|
+
opt,
|
|
227
230
|
};
|
|
228
231
|
};
|
|
229
232
|
const get_user_files = async function () {
|