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

11 lines
233 B
JavaScript

import mongoose from 'mongoose'
export async function connectMongoose() {
await mongoose.connect(
process.env.MONGO_URI,
{
useNewUrlParser: true,
useUnifiedTopology: true
}
)
}