Skip to content

Commit

Permalink
Remove unused BaseData
Browse files Browse the repository at this point in the history
  • Loading branch information
catalin-oancea committed Oct 31, 2024
1 parent 5d8358e commit 336b71d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions api/src/modules/countries/map/map.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -28,7 +27,6 @@ export class MapRepository extends Repository<Country> {
countryCode: Country['code'],
): Promise<FeatureCollection<Geometry, ProjectGeoProperties>> {
const queryBuilder = this.createQueryBuilder('country');
queryBuilder.innerJoin(BaseData, 'bd', 'bd.country_code = country.code');
queryBuilder.select(
`
json_build_object(
Expand Down
1 change: 0 additions & 1 deletion api/src/modules/import/import.repostiory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 336b71d

Please sign in to comment.