Skip to content

Commit

Permalink
Update DistrictController.java (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-mohammed authored Sep 12, 2024
1 parent 01f8812 commit eacb340
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 eacb340

Please sign in to comment.