diff --git a/backend/api/Services/InspectionService.cs b/backend/api/Services/InspectionService.cs index c51df67b..9d05fe33 100644 --- a/backend/api/Services/InspectionService.cs +++ b/backend/api/Services/InspectionService.cs @@ -114,7 +114,7 @@ private IQueryable GetInspections(bool readOnly = true) { string relativePath = $"InspectionData/{inspectionId}/inspection-data-storage-location"; - var response = await idaApi.CallApiForUserAsync( + var response = await idaApi.CallApiForAppAsync( ServiceName, options => { @@ -123,7 +123,6 @@ private IQueryable GetInspections(bool readOnly = true) } ); - if (response.StatusCode == HttpStatusCode.Accepted) { logger.LogInformation("Inspection data storage location for inspection with Id {inspectionId} is not yet available", inspectionId);