Unverified Commit 26633ced authored by Ben Kweon's avatar Ben Kweon Committed by GitHub

Fixed MongoParseError (#29277)

I got "MongoParseError: options buffermaxentries, usefindandmodify, usecreateindex are not supported" and fixed it.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes
parent a71addf2
...@@ -29,9 +29,6 @@ async function dbConnect() { ...@@ -29,9 +29,6 @@ async function dbConnect() {
useNewUrlParser: true, useNewUrlParser: true,
useUnifiedTopology: true, useUnifiedTopology: true,
bufferCommands: false, bufferCommands: false,
bufferMaxEntries: 0,
useFindAndModify: false,
useCreateIndex: true,
} }
cached.promise = mongoose.connect(MONGODB_URI, opts).then((mongoose) => { cached.promise = mongoose.connect(MONGODB_URI, opts).then((mongoose) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment