c2-mongoose 2.1.87 → 2.1.88
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/dist/flow/SearchFlow.js
CHANGED
|
@@ -423,6 +423,9 @@ var SearchFlow = /** @class */ (function () {
|
|
|
423
423
|
if (value instanceof mongoose_1.Types.ObjectId) {
|
|
424
424
|
console.log(value, "objectiId");
|
|
425
425
|
}
|
|
426
|
+
if (mongoose_1.Types.ObjectId.isValid(value)) {
|
|
427
|
+
console.log(value, "objectiId");
|
|
428
|
+
}
|
|
426
429
|
if (key.endsWith("_id")) {
|
|
427
430
|
value = new mongoose_1.Types.ObjectId(value);
|
|
428
431
|
}
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -314,6 +314,9 @@ abstract class SearchFlow {
|
|
|
314
314
|
if (value instanceof Types.ObjectId) {
|
|
315
315
|
console.log(value, "objectiId")
|
|
316
316
|
}
|
|
317
|
+
if (Types.ObjectId.isValid(value as any)) {
|
|
318
|
+
console.log(value, "objectiId");
|
|
319
|
+
}
|
|
317
320
|
if (key.endsWith("_id")) {
|
|
318
321
|
value = new Types.ObjectId(value as string)
|
|
319
322
|
}
|