call api key in repo genaric

This commit is contained in:
kittapath 2024-08-16 10:39:27 +07:00
parent 451d5d28bc
commit 169b3428e7
3 changed files with 40 additions and 24 deletions

View file

@ -10777,8 +10777,9 @@ namespace BMA.EHR.Application.Repositories.Commands
});
var apiPath = $"{_configuration["API"]}/org/dotnet/user-oc/{UserId}";
var apiKey = _configuration["API_KEY"];
var apiResult = GetExternalAPIAsync(apiPath, token ?? "");
var apiResult = GetExternalAPIAsync(apiPath, token ?? "", apiKey);
if (apiResult.Result != null)
{