hyper-tuner/hyper-tuner-cloud

View on GitHub
src/hooks/useServerStorage.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useServerStorage has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useServerStorage = () => {
  const { getIni } = useDb();

  const buildFileUrl = (collection: Collections, recordId: string, filename: string) =>
    `${API_URL}/api/files/${collection}/${recordId}/${filename}`;
Severity: Major
Found in src/hooks/useServerStorage.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status