mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 15:01:40 -05:00
16 lines
552 B
JavaScript
16 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'),
|
||
|
}
|