From 336b71d52d3115c0b598815de0e0fdaecec2b431 Mon Sep 17 00:00:00 2001 From: Catalin Oancea Date: Thu, 31 Oct 2024 22:34:42 +0200 Subject: [PATCH] Remove unused BaseData --- api/src/modules/countries/map/map.repository.ts | 2 -- api/src/modules/import/import.repostiory.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/api/src/modules/countries/map/map.repository.ts b/api/src/modules/countries/map/map.repository.ts index 5c51984f..37147037 100644 --- a/api/src/modules/countries/map/map.repository.ts +++ b/api/src/modules/countries/map/map.repository.ts @@ -2,7 +2,6 @@ import { Injectable, Logger, NotFoundException } from '@nestjs/common'; import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import { Country } from '@shared/entities/country.entity'; -import { BaseData } from '@shared/entities/base-data.entity'; import { FeatureCollection, Geometry } from 'geojson'; @@ -28,7 +27,6 @@ export class MapRepository extends Repository { countryCode: Country['code'], ): Promise> { const queryBuilder = this.createQueryBuilder('country'); - queryBuilder.innerJoin(BaseData, 'bd', 'bd.country_code = country.code'); queryBuilder.select( ` json_build_object( diff --git a/api/src/modules/import/import.repostiory.ts b/api/src/modules/import/import.repostiory.ts index 9e03489d..988d9c06 100644 --- a/api/src/modules/import/import.repostiory.ts +++ b/api/src/modules/import/import.repostiory.ts @@ -2,7 +2,6 @@ import { Injectable } from '@nestjs/common'; import { DataSource } from 'typeorm'; import { BaseData } from '@shared/entities/base-data.entity'; import { Project } from '@shared/entities/projects.entity'; -import { Country } from '@shared/entities/country.entity'; import { ProjectSize2 } from '@shared/entities/cost-inputs/project-size.entity'; import { FeasibilityAnalysis2 } from '@shared/entities/cost-inputs/feasability-analysis.entity'; import { ConservationPlanningAndAdmin2 } from '@shared/entities/cost-inputs/conservation-and-planning-admin.entity';