@xuda.io/drive_module 1.1.1129 → 1.1.1131
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 +12 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -125,18 +125,20 @@ exports.get_drive_files = async function (req) {
|
|
|
125
125
|
if (new_search) {
|
|
126
126
|
opt.selector = {
|
|
127
127
|
...opt.selector,
|
|
128
|
-
...
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
...{
|
|
129
|
+
$or: [
|
|
130
|
+
{
|
|
131
|
+
ocr: {
|
|
132
|
+
$regex: `(?i)${new_search}`,
|
|
133
|
+
},
|
|
132
134
|
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
{
|
|
136
|
+
originalname: {
|
|
137
|
+
$regex: `(?i)${new_search}`,
|
|
138
|
+
},
|
|
137
139
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
],
|
|
141
|
+
},
|
|
140
142
|
};
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -244,7 +246,6 @@ exports.get_drive_files = async function (req) {
|
|
|
244
246
|
return {
|
|
245
247
|
code: 1,
|
|
246
248
|
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),
|
|
247
|
-
opt,
|
|
248
249
|
};
|
|
249
250
|
};
|
|
250
251
|
const get_user_files = async function () {
|