fix api Error
This commit is contained in:
parent
a1f866bcbe
commit
a2615c7b52
3 changed files with 4 additions and 3 deletions
|
|
@ -5804,7 +5804,8 @@ namespace BMA.EHR.Application.Repositories
|
||||||
Id = h.Id,
|
Id = h.Id,
|
||||||
CitizenId = h.Profile.CitizenId,
|
CitizenId = h.Profile.CitizenId,
|
||||||
ProfileId = h.Profile.Id,
|
ProfileId = h.Profile.Id,
|
||||||
ProfileType = h.Profile.ProfileType,
|
ProfileType = "officer",
|
||||||
|
//ProfileType = h.Profile.ProfileType,
|
||||||
FullName = $"{h.Profile.Prefix}{h.Profile.FirstName} {h.Profile.LastName}",
|
FullName = $"{h.Profile.Prefix}{h.Profile.FirstName} {h.Profile.LastName}",
|
||||||
Position = h.Profile.Position,
|
Position = h.Profile.Position,
|
||||||
PosNo = h.Profile.ProfileSalary == null || h.Profile.ProfileSalary.Count == 0 ? "" :
|
PosNo = h.Profile.ProfileSalary == null || h.Profile.ProfileSalary.Count == 0 ? "" :
|
||||||
|
|
|
||||||
|
|
@ -450,7 +450,7 @@ namespace BMA.EHR.Application.Repositories
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{id}";
|
var apiPath = $"{_configuration["API"]}/org/profile/{id}";
|
||||||
|
|
||||||
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "");
|
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "");
|
||||||
if (apiResult.Result != null)
|
if (apiResult.Result != null)
|
||||||
|
|
|
||||||
|
|
@ -57,5 +57,5 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"APIPROBATION": "https://bma-ehr.frappet.synology.me/api/v1/probation/",
|
"APIPROBATION": "https://bma-ehr.frappet.synology.me/api/v1/probation/",
|
||||||
"API": "https://bma-ehr.frappet.synology.me/api/v1/"
|
"API": "https://bma-ehr.frappet.synology.me/api/v1"
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue