@xuda.io/drive_module 1.1.1011 → 1.1.1013
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -122,6 +122,7 @@ exports.get_drive_files = async function (req) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
if (search_string) {
|
|
125
|
+
let mix_conditions;
|
|
125
126
|
tags_query = search_string
|
|
126
127
|
.split(" ")
|
|
127
128
|
.filter((e) => e.includes(":"))
|
|
@@ -132,8 +133,9 @@ exports.get_drive_files = async function (req) {
|
|
|
132
133
|
|
|
133
134
|
if (tagKey === "tag") {
|
|
134
135
|
tags.push(tagVal);
|
|
136
|
+
return;
|
|
135
137
|
}
|
|
136
|
-
|
|
138
|
+
mix_conditions = true;
|
|
137
139
|
if (tagKey === "name") {
|
|
138
140
|
ret.$or.push({ originalname: { $regex: `(?i)${tagVal}` } });
|
|
139
141
|
}
|