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.
Files changed (2) hide show
  1. package/db/entity.js +9 -0
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {