Replace bson import with mongodb

GitOrigin-RevId: f353eb6f76bac55f576c932d868e26322e2e3967
This commit is contained in:
Alf Eaton
2024-09-24 08:06:15 +00:00
committed by Copybot
parent 907195931d
commit 9180d85c87
4 changed files with 202 additions and 20 deletions
@@ -8,7 +8,7 @@ const { ReadableString } = require('@overleaf/stream-utils')
const RangeManager = require('./RangeManager')
const PersistorManager = require('./PersistorManager')
const pMap = require('p-map')
const { BSON } = require('bson')
const { BSON } = require('mongodb-legacy')
const PARALLEL_JOBS = Settings.parallelArchiveJobs
const UN_ARCHIVE_BATCH_SIZE = Settings.unArchiveBatchSize
-1
View File
@@ -26,7 +26,6 @@
"@overleaf/stream-utils": "^0.1.0",
"async": "^3.2.5",
"body-parser": "^1.19.0",
"bson": "^6.1.0",
"bunyan": "^1.8.15",
"celebrate": "^15.0.3",
"express": "^4.19.2",
-1
View File
@@ -35,7 +35,6 @@ SandboxedModule.configure({
'@overleaf/logger': stubs.logger,
'timers/promises': timersPromises,
'mongodb-legacy': require('mongodb-legacy'),
bson: require('bson'),
},
globals: { Buffer, JSON, Math, console, process },
})