@paralect/hive 0.1.27 → 0.1.29

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.27",
3
+ "version": "0.1.29",
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) {
@@ -224,7 +224,7 @@ class MongoService extends MongoQueryService {
224
224
  );
225
225
  }
226
226
 
227
- const findOptions = {};
227
+ const findOptions = { isIncludeSecureFields: true };
228
228
  if (options.session) findOptions.session = options.session;
229
229
  const { results: docs } = await this.find(query, findOptions);
230
230
  if (docs.length === 0) return [];