RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/database/DatabaseWatcher.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function watchOplog has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private async watchOplog(): Promise<void> {
        if (!process.env.MONGO_OPLOG_URL) {
            throw Error('No $MONGO_OPLOG_URL provided');
        }

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

    Function watchChangeStream has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private watchChangeStream(resumeToken?: unknown): void {
            try {
                const options = {
                    ...(useFullDocument ? { fullDocument: 'updateLookup' } : {}),
                    ...(resumeToken ? { startAfter: resumeToken } : {}),
    Severity: Minor
    Found in apps/meteor/server/database/DatabaseWatcher.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status