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.
- package/db/entity.js +1 -1
- 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);
|