api/src/migrations/1664874035162-UpdatedMethodologyStoredFunctions.ts
Function up
has 158 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`CREATE OR REPLACE FUNCTION sum_h3_weighted_cropland_area(
geo_region_id uuid,
material_id uuid,
h3_data_type material_to_h3_type_enum