Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
fix: Remove another unused argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps authored Aug 8, 2023
1 parent ce3ae4b commit 0478663
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/hoc/withConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import mongoose from 'mongoose';
const withConnect = (handler) => async (req, res) => {
if (!mongoose.connection.readyState) {
mongoose.connect(process.env.MONGODB as string, {
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true
});
Expand Down

0 comments on commit 0478663

Please sign in to comment.