spherehq/sphere

View on GitHub
packages/api/src/modules/account/resolvers/Mutation/ExchangeToken.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

Function ExchangeTokenResolver has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ExchangeTokenResolver = async (
_,
args: { input: ExchangeTokenInput },
context: ServerContext,
) => {
Severity: Major
Found in packages/api/src/modules/account/resolvers/Mutation/ExchangeToken.ts - About 2 hrs to fix

    Function ExchangeTokenResolver has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
    Open

    export const ExchangeTokenResolver = async (
    _,
    args: { input: ExchangeTokenInput },
    context: ServerContext,
    ) => {

    There are no issues that match your filters.

    Category
    Status