File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const app = express()
10
10
app . use ( cors ( ) )
11
11
app . use ( express . json ( ) )
12
12
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`
14
14
mongoose . connect ( mongoURI )
15
15
. then ( ( ) => console . log ( 'MongoDB connected' ) )
16
16
. catch ( err => console . error ( 'MongoDB connection error:' , err ) ) ;
Original file line number Diff line number Diff line change @@ -42,6 +42,6 @@ const QuestionSchema = new mongoose.Schema({
42
42
43
43
44
44
// 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
46
46
const QuestionModel = mongoose . model ( 'Question' , QuestionSchema , 'Questions' ) ;
47
47
module . exports = QuestionModel ;
You can’t perform that action at this time.
0 commit comments