@paralect/hive 0.1.26 → 0.1.28
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/package.json
CHANGED
|
@@ -182,7 +182,7 @@ class MongoService extends MongoQueryService {
|
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
const findOptions = {};
|
|
185
|
+
const findOptions = { isIncludeSecureFields: true };
|
|
186
186
|
if (options.session) findOptions.session = options.session;
|
|
187
187
|
const doc = await this.findOne(query, findOptions);
|
|
188
188
|
if (!doc) {
|
|
@@ -253,7 +253,7 @@ class MongoService extends MongoQueryService {
|
|
|
253
253
|
);
|
|
254
254
|
|
|
255
255
|
updated.forEach((doc, index) => {
|
|
256
|
-
this._bus.emit(
|
|
256
|
+
this._bus.emit(`${this._collection.name}:updated`, {
|
|
257
257
|
doc,
|
|
258
258
|
prevDoc: docs[index],
|
|
259
259
|
});
|