RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/lib/server/functions/setRoomAvatar.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export const setRoomAvatar = async function (rid: string, dataURI: string, user: IUser): Promise<void> {
    if (!isRegisterUser(user)) {
        throw new Meteor.Error('invalid-user', 'Invalid user', {
            function: 'RocketChat.setRoomAvatar',
        });
Severity: Minor
Found in apps/meteor/app/lib/server/functions/setRoomAvatar.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status