hola-server 0.3.1 → 0.3.2

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
@@ -525,7 +525,7 @@ class Entity {
525
525
  const results = await this.find(query, attrs);
526
526
  if (results && results.length == 1) {
527
527
  if (this.meta.after_read) {
528
- const { code, err } = await this.meta.after_read(_id, attr_names, results[0]);
528
+ const { code, err } = await this.meta.after_read(_id, this, attr_names, results[0]);
529
529
  if (err || code != SUCCESS) {
530
530
  if (is_log_error()) {
531
531
  log_error(LOG_ENTITY, "after_read error:" + JSON.stringify(err) + ", with code:" + code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {