bin/upgrade/controllers/upgrade-mongo-collections.js
Function guessModelVersion
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MongoController.prototype.guessModelVersion = function(db, callback) {
console.log('Starting to guess mongo model version!');
var minVersion = '1';
db.db.collections(function (error, collections) {