RocketChat/Rocket.Chat

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

Summary

Maintainability
A
1 hr
Test Coverage

Function moveRetentionSetting has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const moveRetentionSetting = async () => {
    const convertDaysToMs = (days: number) => days * 24 * 60 * 60 * 1000;

    const promises: Array<Promise<UpdateResult>> = [];
    await Settings.find(
Severity: Minor
Found in apps/meteor/server/startup/migrations/xrun.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status