mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 14:40:47 +02:00
14b66758a9
GitOrigin-RevId: c5abb64729530baecbee0eb589eaed39faa2ac56
13 lines
281 B
JavaScript
13 lines
281 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 = {
|
|
contacts: mongoDb.collection('contacts'),
|
|
}
|