Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ public String getAbdmFacilityDetails(@PathVariable int workLocationId, @RequestH
OutputResponse response = new OutputResponse();

try {

String resp = abdmFacilityService.getMappedAbdmFacility(workLocationId);

if (resp != null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (resp). πŸ€”

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some of the users, the work location id is stored as null and this will impact in linking the facilities for the beneficiary from the abha app.

response.setResponse(resp);

else
response.setResponse("No ABDM facility mapped for this worklocation");
} catch (Exception e) {

response.setError(5000, e.getMessage());
logger.error(e.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class AbdmFacilityServiceImpl implements AbdmFacilityService{
@Override
public String getMappedAbdmFacility(int psmId) {
ProviderServiceAddressMapping res = abdmFacilityRepo.getAbdmFacility(psmId);
if (res == null)
return null;
return res.toString();

}

}
Loading