RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/irc/server/irc-bridge/peerHandlers/userRegistered.js

Summary

Maintainability
A
1 hr
Test Coverage

Function handleUserRegistered has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default async function handleUserRegistered(args) {
    // Check if there is an user with the given username
    let user = await Users.findOne({
        'profile.irc.username': args.username,
    });

    There are no issues that match your filters.

    Category
    Status