We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228209c commit 64d4c12Copy full SHA for 64d4c12
backend/question-service/src/server.ts
@@ -1,14 +1,12 @@
1
import app from "./app.ts";
2
import connectDB from "./config/db.ts";
3
-// import { seedQuestions } from "./scripts/seed.ts";
4
5
const PORT = process.env.SERVICE_PORT || 3000;
6
7
if (process.env.NODE_ENV !== "test") {
8
connectDB()
9
.then(() => {
10
console.log("MongoDB Connected!");
11
- // seedQuestions();
12
13
const server = app.listen(PORT, () => {
14
console.log(
backend/user-service/src/model/repository.ts
@@ -10,8 +10,6 @@ export async function connectToDB() {
? process.env.MONGO_CLOUD_URI
: process.env.MONGO_LOCAL_URI;
- console.log(mongoDBUri);
-
15
if (!mongoDBUri) {
16
throw new Error("MongoDB URI is not provided");
17
}
0 commit comments