spherehq/sphere

View on GitHub

Showing 27 of 214 total issues

Avoid too many return statements within this function.
Open

return [
4,
prisma_client_1.prisma
.upsertSphere({
where: { alias: slug },
Severity: Major
Found in packages/database/hooks/handler.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

    return [2, { statusCode: 500, message: e_1.message }]
    Severity: Major
    Found in packages/database/hooks/handler.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

      if (!account) return [3, 9]
      Severity: Major
      Found in packages/database/hooks/handler.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

        return [3, 12]
        Severity: Major
        Found in packages/database/hooks/handler.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

          return [
          4,
          prisma_client_1.prisma.account({
          id: data.sphereVerification.node.code.associatedWith.id,
          }),
          Severity: Major
          Found in packages/database/hooks/handler.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

            return [
            4,
            metascraper({
            html: html,
            url: data.sphereVerification.node.url,
            Severity: Major
            Found in packages/database/hooks/handler.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

              return [2, { statusCode: 200 }]
              Severity: Major
              Found in packages/database/hooks/handler.js - About 30 mins to fix
                Severity
                Category
                Status
                Source
                Language