mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[misc] update the bson package
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user