Skip to content

Commit

Permalink
Merge pull request #595 from IABTechLab/ans-UID2-2664-remove-validate…
Browse files Browse the repository at this point in the history
…-status-axios-config

removed the default validate status instances
  • Loading branch information
ashleysmithTTD authored Feb 18, 2025
2 parents b237e83 + e910287 commit 42dbf2f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/api/services/adminServiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ export const getSharingList = async (
): Promise<SharingListResponse> => {
try {
const response = await adminServiceClient.get<SharingListResponse>(
`/api/sharing/list/${siteId}`,
{
validateStatus: (status) => status >= 200 && status < 300,
}
`/api/sharing/list/${siteId}`
);
return response.data.allowed_sites
? response.data
Expand Down Expand Up @@ -116,9 +113,6 @@ export const updateSharingList = async (
allowed_sites: siteList,
allowed_types: typeList,
hash,
},
{
validateStatus: (status) => status >= 200 && status < 300,
}
);
return response.data.allowed_sites
Expand Down

0 comments on commit 42dbf2f

Please sign in to comment.