Vizzuality/landgriffon

View on GitHub
api/src/modules/geo-coding/strategies/admin-region-of-production.service.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function geoCodeAdministrativeRegionOfProduction has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async geoCodeAdministrativeRegionOfProduction(
    sourcingData: SourcingData,
  ): Promise<SourcingData> {
    // TODO: Since this has become required for all location types, we should validate this at DTO level
    if (!sourcingData.locationCountryInput) {

    There are no issues that match your filters.

    Category
    Status