File tree Expand file tree Collapse file tree 4 files changed +3
-14
lines changed Expand file tree Collapse file tree 4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ const mongoConnectionString = process.env.MONGO_URL;
1414const { ObjectId } = mongoose . Types ;
1515// Connect to MongoDB
1616mongoose . Promise = global . Promise ;
17- mongoose . connect ( mongoConnectionString , {
18- useNewUrlParser : true ,
19- useUnifiedTopology : true
20- } ) ;
17+ mongoose . connect ( mongoConnectionString ) ;
2118mongoose . set ( 'strictQuery' , true ) ;
2219mongoose . connection . on ( 'error' , ( ) => {
2320 console . error (
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ const connectToMongoDB = async () => {
2222 mongoose . set ( 'strictQuery' , true ) ;
2323
2424 await mongoose . connect ( mongoConnectionString , {
25- useNewUrlParser : true ,
26- useUnifiedTopology : true ,
2725 serverSelectionTimeoutMS : 30000 , // 30 seconds timeout
2826 socketTimeoutMS : 45000 // 45 seconds timeout
2927 } ) ;
Original file line number Diff line number Diff line change @@ -59,10 +59,7 @@ const headers = { 'User-Agent': 'p5js-web-editor/0.0.1' };
5959
6060const mongoConnectionString = process . env . MONGO_URL ;
6161
62- mongoose . connect ( mongoConnectionString , {
63- useNewUrlParser : true ,
64- useUnifiedTopology : true
65- } ) ;
62+ mongoose . connect ( mongoConnectionString ) ;
6663mongoose . set ( 'strictQuery' , true ) ;
6764mongoose . connection . on ( 'error' , ( ) => {
6865 console . error (
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ const headers = { 'User-Agent': 'p5js-web-editor/0.0.1' };
1414
1515const mongoConnectionString = process . env . MONGO_URL ;
1616
17- mongoose . connect ( mongoConnectionString , {
18- useNewUrlParser : true ,
19- useUnifiedTopology : true
20- } ) ;
17+ mongoose . connect ( mongoConnectionString ) ;
2118mongoose . set ( 'strictQuery' , true ) ;
2219mongoose . connection . on ( 'error' , ( ) => {
2320 console . error (
You can’t perform that action at this time.
0 commit comments