hola-server 0.5.5 → 0.5.6
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 +9 -0
- package/package.json +1 -1
package/db/entity.js
CHANGED
|
@@ -138,6 +138,15 @@ class Entity {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
if (param_obj["_id"] && param_obj["_id"].trim().length > 0) {
|
|
142
|
+
const ids = param_obj["_id"].split(",");
|
|
143
|
+
if (ids.length == 1) {
|
|
144
|
+
and_array.push(oid_query(ids[0]));
|
|
145
|
+
} else if (ids.length > 1) {
|
|
146
|
+
and_array.push(oid_queries(ids));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
141
150
|
if (and_array.length > 0) {
|
|
142
151
|
query["$and"] = and_array;
|
|
143
152
|
|