Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 7, 2024
1 parent 7d1545e commit d9764c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/libs/mongo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { MongoClient } from "mongodb";

const mongoUri = process.env.MONGO_URI || "";
const { MONGO_URI = mongoUri, MONGO_DATABASE = mongoUri } = Bun.env;
const mongoDatabase = process.env.MONGO_DATABASE || "";
const { MONGO_URI = mongoUri, MONGO_DATABASE = mongoDatabase } = Bun.env;
const client = new MongoClient(MONGO_URI);

const db = client.db(MONGO_DATABASE);
Expand Down

0 comments on commit d9764c0

Please sign in to comment.