ddstats-server/libs/utils/multithread/mongoForWorkes.js

11 lines
233 B
JavaScript
Raw Normal View History

2021-10-16 19:58:00 +02:00
import mongoose from 'mongoose'
export async function connectMongoose() {
await mongoose.connect(
process.env.MONGO_URI,
{
useNewUrlParser: true,
useUnifiedTopology: true
}
)
}