api/src/migrations/1695954091382-AddNewImpactStoredProcedure.ts
Function up
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,