diff --git a/src/structure/storage/interfaces/MongodbTable.js b/src/structure/storage/interfaces/MongodbTable.js index 4bcbaf2..b097d7a 100644 --- a/src/structure/storage/interfaces/MongodbTable.js +++ b/src/structure/storage/interfaces/MongodbTable.js @@ -170,8 +170,7 @@ class MongodbTable { } _handleData(data) { //Convert data._id to Mongo ObjectIds - console.log(data); - if (data._id) { + if (data._id && !(data._id instanceof ObjectId)) { if (typeof data._id === 'string') data._id = ObjectId(data._id); else if (typeof data._id === 'object') data._id = { $in: Object.values(data._id)[0].map((id) => {