spherehq/sphere

View on GitHub
packages/api/client/index.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

account: async (input: AccountWhereUniqueInput) => {
const result = await client.query({
account: [{ where: input }, { id: true }],
})
 
 
Severity: Major
Found in packages/api/client/index.ts and 1 other location - About 2 hrs to fix
packages/api/client/index.ts on lines 37..45

Similar blocks of code found in 2 locations. Consider refactoring.
Open

sphere: async (input: SphereWhereUniqueInput) => {
const result = await client.query({
sphere: [{ where: input }, { id: true }],
})
 
 
Severity: Major
Found in packages/api/client/index.ts and 1 other location - About 2 hrs to fix
packages/api/client/index.ts on lines 46..54

There are no issues that match your filters.

Category
Status