@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paralect/hive",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -71,4 +71,4 @@
71
71
  "keywords": [],
72
72
  "author": "",
73
73
  "license": "MIT"
74
- }
74
+ }
@@ -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("updated", {
256
+ this._bus.emit(`${this._collection.name}:updated`, {
257
257
  doc,
258
258
  prevDoc: docs[index],
259
259
  });