mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
ee85d948e2
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
15 lines
552 B
JavaScript
15 lines
552 B
JavaScript
import Settings from '@overleaf/settings'
|
|
import { MongoClient } from 'mongodb'
|
|
|
|
export { ObjectId } from 'mongodb'
|
|
|
|
export const mongoClient = new MongoClient(Settings.mongo.url)
|
|
const mongoDb = mongoClient.db()
|
|
|
|
export const db = {
|
|
deletedProjects: mongoDb.collection('deletedProjects'),
|
|
projects: mongoDb.collection('projects'),
|
|
projectHistoryFailures: mongoDb.collection('projectHistoryFailures'),
|
|
projectHistoryLabels: mongoDb.collection('projectHistoryLabels'),
|
|
projectHistorySyncState: mongoDb.collection('projectHistorySyncState'),
|
|
}
|