Skip to content

Commit

Permalink
docs: correct issue number re: #6796
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 29, 2022
1 parent 74a3b6b commit 283c472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ Connection.prototype.dropDatabase = _wrapConnHelper(function dropDatabase(cb) {
// If `dropDatabase()` is called, this model's collection will not be
// init-ed. It is sufficiently common to call `dropDatabase()` after
// `mongoose.connect()` but before creating models that we want to
// support this. See gh-6967
// support this. See gh-6796
for (const name of Object.keys(this.models)) {
delete this.models[name].$init;
}
Expand Down

0 comments on commit 283c472

Please sign in to comment.