From dad32e7adf839a273a6a5e0abaaa4edc91ef9635 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 7 Sep 2017 15:27:28 +0100 Subject: [PATCH] update bson api in migration 3 --- migrations/3_pack_docHistory_collection.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/3_pack_docHistory_collection.coffee b/migrations/3_pack_docHistory_collection.coffee index c5febea0c2..c652dd7816 100644 --- a/migrations/3_pack_docHistory_collection.coffee +++ b/migrations/3_pack_docHistory_collection.coffee @@ -6,7 +6,8 @@ db = mongojs(Settings.mongo.url, ['docs','docHistory', 'docHistoryStats']) _ = require("underscore") async = require("async") exec = require("child_process").exec -BSON = db.bson.BSON +bson = require('bson') +BSON = new bson() logger = { log: ->