fix api Error

This commit is contained in:
Suphonchai Phoonsawat 2024-06-30 21:42:05 +07:00
parent a1f866bcbe
commit a2615c7b52
3 changed files with 4 additions and 3 deletions

View file

@ -5804,7 +5804,8 @@ namespace BMA.EHR.Application.Repositories
Id = h.Id,
CitizenId = h.Profile.CitizenId,
ProfileId = h.Profile.Id,
ProfileType = h.Profile.ProfileType,
ProfileType = "officer",
//ProfileType = h.Profile.ProfileType,
FullName = $"{h.Profile.Prefix}{h.Profile.FirstName} {h.Profile.LastName}",
Position = h.Profile.Position,
PosNo = h.Profile.ProfileSalary == null || h.Profile.ProfileSalary.Count == 0 ? "" :

View file

@ -450,7 +450,7 @@ namespace BMA.EHR.Application.Repositories
{
try
{
var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{id}";
var apiPath = $"{_configuration["API"]}/org/profile/{id}";
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "");
if (apiResult.Result != null)