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 @@ -8,7 +8,7 @@ JWT_SECRET=YourSecret
88
99JWT_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
1313EMAIL_SMTP_HOST = YourSMTPHost
1414EMAIL_SMTP_PORT = YourSMTPPort
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ var cors = require("cors");
1111// DB connection
1212var MONGODB_URL = process . env . MONGODB_URL ;
1313var 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 ) ;
You can’t perform that action at this time.
0 commit comments