update bson api in migration 3

This commit is contained in:
Shane Kilkelly 2017-09-07 15:27:28 +01:00
parent ce85997843
commit dad32e7adf

View file

@ -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: ->