RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/publications/messages.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function messages/get has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async 'messages/get'(rid, { lastUpdate, latestDate = new Date(), oldestDate, inclusive = false, count = 20, unreads = false }) {
        check(rid, String);

        const fromId = Meteor.userId();

Severity: Minor
Found in apps/meteor/server/publications/messages.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status