Skip to content

Commit ad5bf11

Browse files
authored
fix: mongodb - undefined is not constructor (#10559)
1 parent af77a5d commit ad5bf11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entity-manager/MongoEntityManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ export class MongoEntityManager extends EntityManager {
10971097
) || {}
10981098
if (id) {
10991099
query["_id"] =
1100-
id instanceof objectIdInstance ? id : new ObjectId(id)
1100+
id instanceof objectIdInstance ? id : new objectIdInstance(id)
11011101
}
11021102
const cursor = this.createEntityCursor<Entity>(entityClassOrName, query)
11031103
const deleteDateColumn =

0 commit comments

Comments
 (0)