mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
@@ -7,7 +7,7 @@ import { uniqueFilter } from '../helpers/array'
|
|||||||
|
|
||||||
let connectedPromise: Promise<mongoose.Mongoose>
|
let connectedPromise: Promise<mongoose.Mongoose>
|
||||||
|
|
||||||
export const MONGODB_URI = `${process.env.MONGODB_URI}?retryWrites=true&w=majority`
|
export const MONGODB_URI = process.env.MONGODB_URI
|
||||||
|
|
||||||
export function connect(): Promise<mongoose.Mongoose> {
|
export function connect(): Promise<mongoose.Mongoose> {
|
||||||
if (connectedPromise) {
|
if (connectedPromise) {
|
||||||
|
|||||||
Reference in New Issue
Block a user