Vizzuality/landgriffon

View on GitHub
api/src/migrations/1695954091382-AddNewImpactStoredProcedure.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function up has 146 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(`

    CREATE OR REPLACE FUNCTION ${get_annual_commodity_weighted_impact_over_georegion}(
      geo_region_id uuid,
Severity: Major
Found in api/src/migrations/1695954091382-AddNewImpactStoredProcedure.ts - About 5 hrs to fix

    There are no issues that match your filters.

    Category
    Status