เปลี่ยนเส้น call api สำหรับเก็บ logs

This commit is contained in:
harid 2026-01-28 18:21:32 +07:00
parent fa65f73221
commit bd5649e83b

View file

@ -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"),