Skip to content

Commit

Permalink
fix(be): Fixes related to the distric code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mamartinezmejia committed Feb 9, 2024
1 parent 08006a8 commit 5677b1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public record ClientBusinessInformationDto(
*/
public Map<String, Object> description() {
return Map.of(
"incorporation", StringUtils.isBlank(incorporationNumber) ? "" : incorporationNumber,
"name", StringUtils.isBlank(businessName) ? "" : businessName,
"incorporation", StringUtils.isBlank(incorporationNumber) ? "" : incorporationNumber,
"name", StringUtils.isBlank(businessName) ? "" : businessName,
"businessType", StringUtils.isBlank(businessType) ? "" : businessType,
"clientType", StringUtils.isBlank(clientType) ? "" : clientType,
"goodStanding", StringUtils.isBlank(goodStandingInd) ? "" : goodStandingInd,
Expand Down
3 changes: 2 additions & 1 deletion backend/src/main/java/ca/bc/gov/app/util/ClientMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public static SubmissionDetailEntity mapToSubmissionDetailEntity(
.withBusinessTypeCode(clientBusinessInformationDto.businessType())
.withClientTypeCode(clientBusinessInformationDto.clientType())
.withGoodStandingInd(clientBusinessInformationDto.goodStandingInd())
.withBirthdate(clientBusinessInformationDto.birthdate());
.withBirthdate(clientBusinessInformationDto.birthdate())
.withDistrictCode(clientBusinessInformationDto.district());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.util.Objects;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
Expand Down Expand Up @@ -91,7 +90,7 @@ public Mono<EmailRequestDto> buildMailMessage(
.flatMap(isAdmin ->
forestClientApi
.get()
.uri("/api/districts/{districtCode}", details.getDistrictCode())
.uri("/districts/{districtCode}", details.getDistrictCode())
.exchangeToMono(clientResponse -> clientResponse.bodyToMono(
DistrictDto.class)
)
Expand Down

0 comments on commit 5677b1f

Please sign in to comment.