Skip to content

Commit

Permalink
Merge branch 'feature/PRIME-2789-event-log-on-getgpiddetail' of https…
Browse files Browse the repository at this point in the history
…://github.com/bcgov/moh-prime into feature/PRIME-2789-event-log-on-getgpiddetail
  • Loading branch information
bergomi02 committed Sep 19, 2024
2 parents 9b51deb + e0ffdf9 commit 44b8969
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public async Task<ActionResult> GetGpidDetail()
await _vendorAPILogService.UpdateLogAsync(logId, SerializeObjectForLog(result));
var enrolleeStub = await _enrolleeService.GetEnrolleeStubAsync(User.GetPrimeUsername());
await _businessEventService.CreateEnrolleeEventAsync(enrolleeStub.Id,
$"First-time provisioning API (aka GetGpidDetail) returned data to calling entity {TranslateAuthorizedParty(authorizedParty)}");
$"\"First-Time Provisioning API\" (aka GetGpidDetail) returned data to calling entity {TranslateAuthorizedParty(authorizedParty)}");
return Ok(result);
}

Expand Down Expand Up @@ -300,7 +300,9 @@ private string TranslateAuthorizedParty(string authorizedParty)
case "PRIME-POS-GPID":
return "Medinet";
case "PRIME-APPLICATION-LOCAL":
return "PRIME (testing)";
return "PRIME (testing in `dev`)";
case "PRIME-APPLICATION-TEST":
return "PRIME (testing in `test`)";
default:
return "N/A";
}
Expand Down

0 comments on commit 44b8969

Please sign in to comment.