Skip to content

Commit

Permalink
Merge pull request #3 from MattPlayGamez/dev
Browse files Browse the repository at this point in the history
updated mongoose.connect, to remove deprecated options
  • Loading branch information
MattPlayGamez authored Sep 23, 2024
2 parents 92d702e + 996dec2 commit 387fae5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const mongoose = require('mongoose')
const { nanoid } = require('nanoid');



// Creëer het gebruikersmodel

class Authenticator {
Expand All @@ -20,7 +19,7 @@ class Authenticator {
this.maxLoginAttempts = maxLoginAttempts;

// Verbind met MongoDB
mongoose.connect(MONGODB_CONNECTION_STRING, { useNewUrlParser: true, useUnifiedTopology: true });
mongoose.connect(MONGODB_CONNECTION_STRING);

this.User = mongoose.model('User', userSchema)
}
Expand Down

0 comments on commit 387fae5

Please sign in to comment.