api/src/migrations/1645259040554-ImpactStoredFunctions.ts
Function up
has 240 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_h3_uncompact_geo_region(geo_region_id uuid, h3_resolution int)
RETURNS TABLE (h3index h3index) AS
$$
File 1645259040554-ImpactStoredFunctions.ts
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { MigrationInterface, QueryRunner } from 'typeorm';
export class ImpactStoredFunctions1645259040554 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`