diff --git a/Core/RequestLoggingMiddleware.cs b/Core/RequestLoggingMiddleware.cs index a24a99a..d1796ec 100644 --- a/Core/RequestLoggingMiddleware.cs +++ b/Core/RequestLoggingMiddleware.cs @@ -71,7 +71,8 @@ namespace BMA.EHR.Recruit.Service.Core { try { - var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + //var apiPath = $"{_configuration["API"]}/org/dotnet/keycloak/{keycloakId}"; + var apiPath = $"{_configuration["API"]}/org/dotnet/user-logs/{keycloakId}"; var apiKey = _configuration["API_KEY"] ?? ""; var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey); @@ -246,7 +247,8 @@ namespace BMA.EHR.Recruit.Service.Core { logType = logType, ip = context.Connection.RemoteIpAddress?.ToString(), - rootId = pf == null ? null : pf.RootId, + //rootId = pf == null ? null : pf.RootId, + rootId = pf == null ? null : pf.RootDnaId, systemName = SystemName, startTimeStamp = startTime.ToString("o"), endTimeStamp = endTime.ToString("o"),