c2-mongoose 2.1.256 → 2.1.257
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.
|
@@ -239,7 +239,7 @@ var SearcherFlow = /** @class */ (function () {
|
|
|
239
239
|
].includes(key)) {
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
if (typeof value === 'string' && _this.isValidObjectId(value)) {
|
|
242
|
+
if (typeof value === 'string' && _this.isValidObjectId(value) && key !== 'owner') {
|
|
243
243
|
value = new mongoose_1.Types.ObjectId(value);
|
|
244
244
|
}
|
|
245
245
|
if (value === 'true') {
|
package/package.json
CHANGED
package/src/flow/SearcherFlow.ts
CHANGED
|
@@ -203,7 +203,7 @@ class SearcherFlow<D> {
|
|
|
203
203
|
return
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
if (typeof value === 'string' && this.isValidObjectId(value as string)) {
|
|
206
|
+
if (typeof value === 'string' && this.isValidObjectId(value as string) && key !== 'owner') {
|
|
207
207
|
value = new Types.ObjectId(value as string)
|
|
208
208
|
}
|
|
209
209
|
|