developer239/node-type-orm-graphql

View on GitHub
src/modules/Auth/resolvers/Session/ForgotPassword.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function forgotPassword has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Mutation(() => Boolean)
  async forgotPassword(@Arg('email') email: string): Promise<boolean> {
    const user = await findUserByEmail(email)

    if (!user) {
Severity: Minor
Found in src/modules/Auth/resolvers/Session/ForgotPassword.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status