Skip to content

Commit e10b73b

Browse files
committed
Resolved mangoose warning, correct typo
1 parent 233c8fa commit e10b73b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ JWT_SECRET=YourSecret
88

99
JWT_TIMEOUT_DURATION="2 hours"
1010
# You can place duration available here: https://github.com/auth0/node-jsonwebtoken#usage
11-
# Seach for "expiresIn" option on above link.
11+
# Search for "expiresIn" option on above link.
1212

1313
EMAIL_SMTP_HOST=YourSMTPHost
1414
EMAIL_SMTP_PORT=YourSMTPPort

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var cors = require("cors");
1111
// DB connection
1212
var MONGODB_URL = process.env.MONGODB_URL;
1313
var mongoose = require("mongoose");
14-
mongoose.connect(MONGODB_URL, { useNewUrlParser: true }).then(() => {
14+
mongoose.connect(MONGODB_URL, { useNewUrlParser: true, useUnifiedTopology: true }).then(() => {
1515
//don't show the log when it is test
1616
if(process.env.NODE_ENV !== "test") {
1717
console.log("Connected to %s", MONGODB_URL);

0 commit comments

Comments
 (0)