[misc] update the bson package

This commit is contained in:
Jakob Ackermann
2020-09-10 16:40:56 +01:00
parent 0bfe84db47
commit c42561c38a
6 changed files with 11 additions and 19 deletions
+3 -1
View File
@@ -16,7 +16,9 @@
let PackManager
const async = require('async')
const _ = require('underscore')
const { db, ObjectId, BSON } = require('./mongojs')
const Bson = require('bson')
const BSON = new Bson()
const { db, ObjectId } = require('./mongojs')
const logger = require('logger-sharelatex')
const LockManager = require('./LockManager')
const MongoAWS = require('./MongoAWS')
+1 -1
View File
@@ -18,7 +18,7 @@ let project_id, doc_id
const Settings = require('settings-sharelatex')
const async = require('async')
const _ = require('underscore')
const { db, ObjectId, BSON } = require('./mongojs')
const { db, ObjectId } = require('./mongojs')
const fs = require('fs')
const Metrics = require('metrics-sharelatex')
Metrics.initialize('track-changes')
+1 -3
View File
@@ -2,7 +2,6 @@
// Sanity-check the conversion and remove this comment.
const Settings = require('settings-sharelatex')
const mongojs = require('mongojs')
const bson = require('bson')
const db = mongojs(Settings.mongo.url, [
'docHistory',
'projectHistoryMetaData',
@@ -10,6 +9,5 @@ const db = mongojs(Settings.mongo.url, [
])
module.exports = {
db,
ObjectId: mongojs.ObjectId,
BSON: new bson.BSONPure()
ObjectId: mongojs.ObjectId
}