Skip to content

Commit 4feea3b

Browse files
committed
chore: remove unused castToBSON method
1 parent 6fbd014 commit 4feea3b

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

lib/index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -543,21 +543,6 @@ function getSchemaOrParent (key, schema) {
543543
}
544544
}
545545

546-
/**
547-
* Takes object and casts fields to BSON types as per this model's schema
548-
*
549-
* @param {object} obj
550-
* @return undefined
551-
* @api private
552-
*/
553-
// DataStore.prototype.castToBSON = function (obj) {
554-
// // TODO: Do we need to handle casting for all fields, or will `_id` be the only BSON specific type?
555-
// // this is starting to enter ODM land...
556-
// if (typeof obj._id === 'string' && ObjectID.isValid(obj._id) && obj._id.match(/^[a-fA-F0-9]{24}$/)) {
557-
// obj._id = ObjectID.createFromHexString(obj._id)
558-
// }
559-
// }
560-
561546
/**
562547
*
563548
*/

0 commit comments

Comments
 (0)