e-ucm/rage-analytics-backend

View on GitHub
bin/upgrade/controllers/upgrade-mongo-collections.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function guessModelVersion has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MongoController.prototype.guessModelVersion = function(db, callback) {

    console.log('Starting to guess mongo model version!');
    var minVersion = '1';
    db.db.collections(function (error, collections) {
Severity: Major
Found in bin/upgrade/controllers/upgrade-mongo-collections.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status