diff --git a/lib/connection.js b/lib/connection.js index cd36386bc00..f03f42a67c4 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -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; }