From 35fd73280a2934f516ad861b0f4e9bd7e8ddba81 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 21 Jun 2022 22:57:14 +0200 Subject: [PATCH] Revert "add retryWrites w=majority" This reverts commit a1e49bf9e489912a1a8c7d7cd148f52572499498. --- db/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/index.ts b/db/index.ts index 51c0d9f..7b833d3 100644 --- a/db/index.ts +++ b/db/index.ts @@ -7,7 +7,7 @@ import { uniqueFilter } from '../helpers/array' let connectedPromise: Promise -export const MONGODB_URI = `${process.env.MONGODB_URI}?retryWrites=true&w=majority` +export const MONGODB_URI = process.env.MONGODB_URI export function connect(): Promise { if (connectedPromise) {