Skip to content

Commit

Permalink
Merge branch 'AMPATH:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sainingo authored Jun 28, 2024
2 parents 9bfa62e + 1e4d39f commit dae2028
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ export function useConceptAnswers(conceptUuid: string): { data: Array<ConceptAns
}

const urlencoded = new URLSearchParams();
urlencoded.append('client_id', 'palladium.partner.client');
urlencoded.append('client_secret', '28f95b2a');
// urlencoded.append('client_id', 'palladium.partner.client');
// urlencoded.append('client_secret', '28f95b2a');
// urlencoded.append('grant_type', 'client_credentials');
// urlencoded.append('scope', 'DHP.Gateway DHP.Partners');

urlencoded.append('client_id', 'ampath.partner.client');
urlencoded.append('client_secret', '3ae8a7f6');
urlencoded.append('grant_type', 'client_credentials');
urlencoded.append('scope', 'DHP.Gateway DHP.Partners');

Expand Down Expand Up @@ -165,7 +170,7 @@ async function postToRegistry(
}

export const useFacilityName = (facilityCode) => {
const apiUrl = `/ws/rest/v1/kenyaemr/facilityName?facilityCode=${facilityCode}`;
const apiUrl = `/ws/rest/v1/amrscore/facilityName?facilityCode=${facilityCode}`;
const { data, error, isLoading } = useSWRImmutable<FetchResponse>(apiUrl, openmrsFetch);

return {
Expand Down

0 comments on commit dae2028

Please sign in to comment.