Skip to content

Commit

Permalink
⚰️ Remove deprecated mongodb connection options
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Oct 5, 2023
1 parent 64c3cac commit df3903c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/app/datasource/mongo_datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ var MongoClient = alchemy.use('mongodb').MongoClient;
*
* @author Jelle De Loecker <jelle@develry.be>
* @since 0.2.0
* @version 1.1.0
* @version 1.3.16
*/
var Mongo = Function.inherits('Alchemy.Datasource.Nosql', function Mongo(name, _options) {
const Mongo = Function.inherits('Alchemy.Datasource.Nosql', function Mongo(name, _options) {

var options,
uri;
Expand Down Expand Up @@ -50,12 +50,6 @@ var Mongo = Function.inherits('Alchemy.Datasource.Nosql', function Mongo(name, _

// Set the connection options
this.mongoOptions = {

// Use the new url parser, because otherwise it logs a warning
useNewUrlParser : true,

// Enable the new unified topology layer
useUnifiedTopology : true,
};

// Cache collections in here
Expand Down

0 comments on commit df3903c

Please sign in to comment.