From 98ca590c62691fe41443dc328e744a0f835bf35b Mon Sep 17 00:00:00 2001 From: alexlee-dev Date: Thu, 23 Jul 2020 19:50:17 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Attempt=20manual=20MongoDB?= =?UTF-8?q?=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/util.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/util.ts b/src/server/util.ts index 3fc26f0..b5a60a4 100644 --- a/src/server/util.ts +++ b/src/server/util.ts @@ -8,10 +8,10 @@ export const checkIfMongoDBIsRunning = async (): Promise => try { if (!process.env.MONGODB_URL) throw new Error("No MONGODB_URL"); - const response = await fetch( - process.env.MONGODB_URL.replace(/mongodb:\/\//gm, "http://") - ); - if (response.status !== 200) return resolve(false); + // const response = await fetch( + // process.env.MONGODB_URL.replace(/mongodb:\/\//gm, "http://") + // ); + // if (response.status !== 200) return resolve(false); return resolve(true); } catch (error) { resolve(false);