lazehang/accelerateCrypto-backend

View on GitHub
services/UserService.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function register has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async register(username: string, name: string, password: string, isAdmin: boolean) {
        return new Promise( (resolve, reject) => {
            this.knex('users').where({ username: username }).first()
                .then((user) => {
                    if (user) {
Severity: Minor
Found in services/UserService.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status