hola-server 0.4.7 → 0.4.8
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/db/entity.js +1 -4
- package/package.json +1 -1
package/db/entity.js
CHANGED
|
@@ -43,11 +43,8 @@ const parse_search_value = function (name, type_name, search_value) {
|
|
|
43
43
|
} else if (search_value.startsWith("<")) {
|
|
44
44
|
const value = search_value.substring(1);
|
|
45
45
|
return { [name]: { "$lt": convert_search_value_by_type(type_name, value) } };
|
|
46
|
-
} else if (search_value.includes(",")) {
|
|
47
|
-
const values = search_value.split(",").map(v => convert_search_value_by_type(type_name, v));
|
|
48
|
-
return { [name]: { "$in": values } };
|
|
49
46
|
} else if (type_name === "array") {
|
|
50
|
-
return { [name]: { "$
|
|
47
|
+
return { [name]: { "$in": [search_value] } };
|
|
51
48
|
} else {
|
|
52
49
|
let value = convert_search_value_by_type(type_name, search_value);
|
|
53
50
|
if (typeof value === "string") {
|