Skip to content

Commit

Permalink
Upgrade to mongoose 8.6.4
Browse files Browse the repository at this point in the history
We cannot upgrade to 8.7.0 or beyond, because I'm receiving the same connection
issues discussed in Automattic/mongoose#15015. So
further upgrades are paused until that is figured out.
  • Loading branch information
domfarolino committed Dec 9, 2024
1 parent 4418bd6 commit 3c64d6d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 104 deletions.
165 changes: 63 additions & 102 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"dotenv": "^4.0.0",
"express": "^4.21.2",
"mongoose": "^7.0.0",
"mongoose": "8.6.4",
"morgan": "^1.8.1",
"node-fetch": "^2.7.0",
"web-push": "^3.6.6"
Expand Down
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const visitSchema = mongoose.Schema({
const Visits = mongoose.model('Visits', visitSchema);

router.get('/visits', async (request, response, next) => {
const count = await Visits.count();
const count = await Visits.countDocuments();

let limit = 50;
if (request.query.all) {
Expand Down

0 comments on commit 3c64d6d

Please sign in to comment.