This commit is contained in:
isaconantonis 2023-08-02 11:13:50 +02:00
parent 3c8a7543bf
commit 6ba28a795c
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import client from "@/lib/mongodb"; import client from "../lib/mongodb";
export async function getTeamPlayers() { export async function getTeamPlayers() {
const db = client.db("SloppyFuckers") const db = client.db("SloppyFuckers")

View file

@ -1,6 +1,6 @@
import { MongoClient, ServerApiVersion } from "mongodb" import { MongoClient, ServerApiVersion } from "mongodb"
const client = new MongoClient(process.env.MONGODB_URI, { const client = new MongoClient(process.env.MONGODB_URI || '', {
serverApi: { serverApi: {
version: ServerApiVersion.v1, version: ServerApiVersion.v1,
strict: true, strict: true,