From 81f134e4aa838bd09d141d99e7aa744effe3ca4e Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 10 Apr 2012 13:36:10 -0300 Subject: [PATCH] Fixed issue with BinaryParser not being exported from mongoose.mongo, causing an exception, and breaking things with newer releases of mongoose. --- lib/plugins/useTimestamps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/useTimestamps.js b/lib/plugins/useTimestamps.js index d7bbcef..03b70f3 100644 --- a/lib/plugins/useTimestamps.js +++ b/lib/plugins/useTimestamps.js @@ -1,6 +1,6 @@ var mongoose = require('mongoose') , ObjectID = mongoose.ObjectID - , BinaryParser = mongoose.mongo.BinaryParser; + , BinaryParser = require('mongoose/node_modules/mongodb/node_modules/bson').BinaryParser; exports.useTimestamps = function (schema, options) { if (schema.path('_id')) {