From 6ba28a795c6c6326d61eb84341db045db979fdee Mon Sep 17 00:00:00 2001 From: isaconantonis Date: Wed, 2 Aug 2023 11:13:50 +0200 Subject: [PATCH] fix --- app/actions.ts | 2 +- lib/mongodb.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions.ts b/app/actions.ts index f247c5e..5907129 100644 --- a/app/actions.ts +++ b/app/actions.ts @@ -1,4 +1,4 @@ -import client from "@/lib/mongodb"; +import client from "../lib/mongodb"; export async function getTeamPlayers() { const db = client.db("SloppyFuckers") diff --git a/lib/mongodb.ts b/lib/mongodb.ts index 2b8b6c0..b05a252 100644 --- a/lib/mongodb.ts +++ b/lib/mongodb.ts @@ -1,6 +1,6 @@ import { MongoClient, ServerApiVersion } from "mongodb" -const client = new MongoClient(process.env.MONGODB_URI, { +const client = new MongoClient(process.env.MONGODB_URI || '', { serverApi: { version: ServerApiVersion.v1, strict: true,