@azteam/express 1.2.440 → 1.2.442
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.
|
@@ -127,7 +127,7 @@ function _default() {
|
|
|
127
127
|
req.query[_newKey] = _objectSpread(_objectSpread({}, req.query[_newKey]), {}, {
|
|
128
128
|
$lte: value
|
|
129
129
|
});
|
|
130
|
-
} else if (value.includes(',')) {
|
|
130
|
+
} else if (value.includes(',') && key !== 'keywords') {
|
|
131
131
|
req.query[key] = {
|
|
132
132
|
$in: value.split(',')
|
|
133
133
|
};
|
|
@@ -149,6 +149,11 @@ function _default() {
|
|
|
149
149
|
$search: keywords
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
|
+
req.paginate.sort = {
|
|
153
|
+
score: {
|
|
154
|
+
$meta: 'textScore'
|
|
155
|
+
}
|
|
156
|
+
};
|
|
152
157
|
}
|
|
153
158
|
case 26:
|
|
154
159
|
return _context.abrupt("return", next());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azteam/express",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.442",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "toda <sp.azsolution.net@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@azteam/crypto": "1.0.40",
|
|
14
14
|
"@azteam/error": "1.0.39",
|
|
15
15
|
"@azteam/http-client": "1.0.118",
|
|
16
|
-
"@azteam/util": "1.0.
|
|
16
|
+
"@azteam/util": "1.0.48",
|
|
17
17
|
"@azteam/validator": "1.0.29",
|
|
18
18
|
"@grpc/grpc-js": "1.6.7",
|
|
19
19
|
"@grpc/proto-loader": "0.6.12",
|
|
@@ -112,7 +112,7 @@ export default function (opts = {}) {
|
|
|
112
112
|
...req.query[newKey],
|
|
113
113
|
$lte: value,
|
|
114
114
|
};
|
|
115
|
-
} else if (value.includes(',')) {
|
|
115
|
+
} else if (value.includes(',') && key !== 'keywords') {
|
|
116
116
|
req.query[key] = {
|
|
117
117
|
$in: value.split(','),
|
|
118
118
|
};
|
|
@@ -139,6 +139,8 @@ export default function (opts = {}) {
|
|
|
139
139
|
$search: keywords,
|
|
140
140
|
},
|
|
141
141
|
};
|
|
142
|
+
|
|
143
|
+
req.paginate.sort = {score: {$meta: 'textScore'}};
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
|