hola-server 0.7.7 → 0.7.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.
Files changed (2) hide show
  1. package/db/entity.js +1 -1
  2. package/package.json +1 -1
package/db/entity.js CHANGED
@@ -230,7 +230,7 @@ class Entity {
230
230
  let page_limit = parseInt(limit);
231
231
  page_limit = isNaN(page_limit) || page_limit <= 0 ? 10 : page_limit;
232
232
 
233
- const search_query = query ? query : await this.get_search_query(param_obj);
233
+ const search_query = { ...query, ...await this.get_search_query(param_obj) };
234
234
  if (!search_query) {
235
235
  if (is_log_error()) {
236
236
  log_error(LOG_ENTITY, "no search query is set for param:" + JSON.stringify(param_obj));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {