Skip to content

Commit

Permalink
Merge pull request #353 from bcgov/grad-release
Browse files Browse the repository at this point in the history
Grad release 1.23.1
  • Loading branch information
githubmamatha authored Sep 16, 2024
2 parents aa9b9eb + 6847ddb commit a371c75
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class DistrictController {
@PreAuthorize(PermissionsConstants.READ_SCHOOL_DATA)
@Operation(summary = "Find a District by District Number", description = "Get District by District Number", tags = { "District" })
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")})
public ResponseEntity<District> getDistrictDetails(@PathVariable String distCode) {
if(distCode.length() <=3) {
District distResponse = districtService.getDistrictDetails(distCode);
public ResponseEntity<District> getDistrictDetails(@PathVariable String distNo) {
if(distNo.length() <=3) {
District distResponse = districtService.getDistrictDetails(distNo);
if (distResponse != null) {
return response.GET(distResponse);
}
Expand Down

0 comments on commit a371c75

Please sign in to comment.