RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/startup/migrations/v290.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function up has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async up() {
        // CE may have been EE first, so it may hold priorities which we want to remove
        // IF env is not EE anymore, then just cleaning the collection is enough
        // IF it's still EE, populate new collection with SLAs
        const currentPriorities = await LivechatPriority.col.find().toArray();
Severity: Minor
Found in apps/meteor/server/startup/migrations/v290.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status