Skip to content

Commit

Permalink
fix: mongodb - undefined is not constructor (#10559)
Browse files Browse the repository at this point in the history
  • Loading branch information
hekystyle committed Dec 29, 2023
1 parent af77a5d commit ad5bf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity-manager/MongoEntityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ export class MongoEntityManager extends EntityManager {
) || {}
if (id) {
query["_id"] =
id instanceof objectIdInstance ? id : new ObjectId(id)
id instanceof objectIdInstance ? id : new objectIdInstance(id)
}
const cursor = this.createEntityCursor<Entity>(entityClassOrName, query)
const deleteDateColumn =
Expand Down

0 comments on commit ad5bf11

Please sign in to comment.