Skip to content

Commit

Permalink
Call IDA in behalf of the app
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor committed Dec 17, 2024
1 parent 7996d46 commit 44d5825
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/api/Services/InspectionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private IQueryable<Inspection> GetInspections(bool readOnly = true)
{
string relativePath = $"InspectionData/{inspectionId}/inspection-data-storage-location";

var response = await idaApi.CallApiForUserAsync(
var response = await idaApi.CallApiForAppAsync(
ServiceName,
options =>
{
Expand All @@ -123,7 +123,6 @@ private IQueryable<Inspection> 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);
Expand Down

0 comments on commit 44d5825

Please sign in to comment.