update bson api in migration 3

This commit is contained in:
Shane Kilkelly 2017-09-07 15:27:28 +01:00
parent 34158a00dd
commit d11b11222b

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