fix db conn for nextauth

This commit is contained in:
Thomas Ruoff
2021-12-08 23:38:17 +01:00
committed by Thomas Ruoff
parent 893896cf31
commit 73bb989ca7
2 changed files with 8 additions and 8 deletions

View File

@@ -5,7 +5,9 @@ import { BOOKING_STATUS } from './enums'
let connectedPromise: Promise<mongoose.Mongoose>
const MONGODB_OPTIONS = {
export const MONGO_URI = process.env.MONGO_URI;
export const MONGODB_OPTIONS = {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true,