hola-server 1.0.4 → 1.0.5
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 +2 -2
- package/package.json +1 -1
package/db/entity.js
CHANGED
|
@@ -580,7 +580,7 @@ class Entity {
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
const field_names = this.meta.property_fields.map(f => f.name);
|
|
583
|
-
const attrs = {};
|
|
583
|
+
const attrs = { _id: 1 };
|
|
584
584
|
attr_names.split(",").forEach((attr) => {
|
|
585
585
|
if (field_names.includes(attr)) {
|
|
586
586
|
attrs[attr] = 1;
|
|
@@ -624,7 +624,7 @@ class Entity {
|
|
|
624
624
|
const field_names = this.meta.property_fields.map(f => f.name);
|
|
625
625
|
const ref_fields = [];
|
|
626
626
|
const link_fields = [];
|
|
627
|
-
const attrs = {};
|
|
627
|
+
const attrs = { _id: 1 };
|
|
628
628
|
|
|
629
629
|
const fields_map = this.meta.fields_map;
|
|
630
630
|
attr_names.split(",").forEach((attr) => {
|