Skip to content

Commit 7571973

Browse files
authored
Update server.js
1 parent 8dd6877 commit 7571973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var db
88
// Remember to change YOUR_USERNAME and YOUR_PASSWORD to your username and password!
99
MongoClient.connect('mongodb://YOUR_USERNAME:[email protected]:47955/star-wars-quotes', (err, database) => {
1010
if (err) return console.log(err)
11-
db = database
11+
db = database.db('star-wars-quotes')
1212
app.listen(process.env.PORT || 3000, () => {
1313
console.log('listening on 3000')
1414
})

0 commit comments

Comments
 (0)