Skip to content

Commit 50652cb

Browse files
authored
Merge pull request #35 from CS3219-AY2425S1/shift-user-db
Update QuestionService and UserService
2 parents d88dd8a + bfd0734 commit 50652cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Backend/QuestionService/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const app = express()
1010
app.use(cors())
1111
app.use(express.json())
1212

13-
const mongoURI = `mongodb+srv://${process.env.DB_USERNAME}:${process.env.DB_PASSWORD}@cs3219.rrxz3.mongodb.net/Question-User-DB?retryWrites=true&w=majority&appName=CS3219`
13+
const mongoURI = `mongodb+srv://${process.env.DB_USERNAME}:${process.env.DB_PASSWORD}@cs3219.rrxz3.mongodb.net/Question-DB?retryWrites=true&w=majority&appName=CS3219`
1414
mongoose.connect(mongoURI)
1515
.then(() => console.log('MongoDB connected'))
1616
.catch(err => console.error('MongoDB connection error:', err));

Backend/QuestionService/models/Questions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ const QuestionSchema = new mongoose.Schema({
4242

4343

4444
// We create a model with the name 'Question', a schema 'QuestionSchema', and specifically looking at 'Questions' cluster in
45-
// the 'Question-User-DB' database
45+
// the 'Question-DB' database
4646
const QuestionModel = mongoose.model('Question', QuestionSchema, 'Questions');
4747
module.exports = QuestionModel;

0 commit comments

Comments
 (0)