@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
|
@@ -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 [];
|