@xuda.io/account_module 1.2.240 → 1.2.242
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.mjs +4 -19
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1125,28 +1125,13 @@ export const get_contacts = async function (req) {
|
|
|
1125
1125
|
if (typeof search !== 'undefined') {
|
|
1126
1126
|
opt.selector['$or'] = [
|
|
1127
1127
|
{
|
|
1128
|
-
|
|
1129
|
-
$regex:
|
|
1128
|
+
name: {
|
|
1129
|
+
$regex: `(?i)${search}`,
|
|
1130
1130
|
},
|
|
1131
1131
|
},
|
|
1132
1132
|
{
|
|
1133
|
-
|
|
1134
|
-
$regex: `(?i)${
|
|
1135
|
-
},
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
client_headers: {
|
|
1139
|
-
$regex: `(?i)${req.log_search}`,
|
|
1140
|
-
},
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
response_data: {
|
|
1144
|
-
$regex: `(?i)${req.log_search}`,
|
|
1145
|
-
},
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
method: {
|
|
1149
|
-
$eq: req.log_search,
|
|
1133
|
+
email: {
|
|
1134
|
+
$regex: `(?i)${search}`,
|
|
1150
1135
|
},
|
|
1151
1136
|
},
|
|
1152
1137
|
];
|