Skip to content

Commit

Permalink
✏️ Attempt manual MongoDB fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlee-dev committed Jul 24, 2020
1 parent f99dd14 commit 98ca590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const checkIfMongoDBIsRunning = async (): Promise<boolean> =>
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);
Expand Down

0 comments on commit 98ca590

Please sign in to comment.