mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
13 lines
457 B
JavaScript
13 lines
457 B
JavaScript
|
const config = require('config')
|
||
|
const { MongoClient } = require('mongodb')
|
||
|
|
||
|
const client = new MongoClient(config.mongo.uri)
|
||
|
const db = client.db()
|
||
|
|
||
|
const chunks = db.collection('projectHistoryChunks')
|
||
|
const blobs = db.collection('projectHistoryBlobs')
|
||
|
const globalBlobs = db.collection('projectHistoryGlobalBlobs')
|
||
|
const shardedBlobs = db.collection('projectHistoryShardedBlobs')
|
||
|
|
||
|
module.exports = { client, db, chunks, blobs, globalBlobs, shardedBlobs }
|