Skip to content

Commit

Permalink
Merge pull request #616 from techmatters/CHI-2758-fix_axios_calls
Browse files Browse the repository at this point in the history
CHI-2758 fix axios calls Trivial
  • Loading branch information
stephenhand authored May 16, 2024
2 parents a2634d2 + 7584458 commit 65fe7b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/getProfileFlagsForIdentifier.protected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ export const handler: ServerlessFunctionSignature<EnvVars, Event> = async (
const { trigger } = event;

const identifier = getIdentifier(trigger);
const res = await axios.get(`${hrmBaseUrl}/profiles/identifier/${identifier}/flags`, {
const res = await axios.request({
url: `${hrmBaseUrl}/profiles/identifier/${identifier}/flags`,
method: 'get',
headers: {
'Content-Type': 'application/json',
Authorization: `Basic ${context.HRM_STATIC_KEY}`,
Expand Down

0 comments on commit 65fe7b8

Please sign in to comment.