Compare commits

...

3 commits

Author SHA1 Message Date
harid
8425c62c6b fix bug ระบบวินัย เมนูสอบสวน-สรุปผล ไม่ได้กรองสิทธิ์ #7
All checks were successful
Build & Deploy Discipline Service / build (push) Successful in 2m5s
2026-07-23 13:40:47 +07:00
harid
fe40df025f แยก Hangfire TablesPrefix ระหว่าง service
All checks were successful
Build & Deploy Placement Service / build (push) Successful in 1m51s
Build & Deploy Retirement Service / build (push) Successful in 2m9s
Build & Deploy Discipline Service / build (push) Successful in 1m51s
2026-07-20 14:20:20 +07:00
Suphonchai Phoonsawat
9c9576692a fix niti api url
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m50s
2026-07-20 13:47:40 +07:00
5 changed files with 16 additions and 5 deletions

View file

@ -889,6 +889,10 @@ namespace BMA.EHR.DisciplineInvestigate.Service.Controllers
RespondentType = data.RespondentType.Trim().ToUpper(),
Organization = data.Organization,
RootDnaId = data.RootDnaId,
Child1DnaId = data.Child1DnaId,
Child2DnaId = data.Child2DnaId,
Child3DnaId = data.Child3DnaId,
Child4DnaId = data.Child4DnaId,
ConsideredAgency = data.ConsideredAgency,
OrganizationId = data.OrganizationId,
ConsideredAgencyId = data.ConsideredAgencyId,

View file

@ -121,7 +121,7 @@ var builder = WebApplication.CreateBuilder(args);
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
InvisibilityTimeout = TimeSpan.FromHours(3),
TablesPrefix = "Hangfire"
TablesPrefix = "Hangfire_Discipline"
})));
builder.Services.AddHangfireServer();
}

View file

@ -11,15 +11,22 @@ public class NotificationService
private readonly ILogger<NotificationService> _logger;
private readonly IConfiguration _configuration;
private const string NotifyEndpoint = "https://hrmsbkk.case-collection.com/api/v1/org/through-socket/notify-from-token";
private string _notifyEndpoint;
public NotificationService(IHttpClientFactory httpClientFactory, ILogger<NotificationService> logger, IConfiguration configuration)
{
_httpClientFactory = httpClientFactory;
_logger = logger;
_configuration = configuration;
_notifyEndpoint = $"{_configuration["API"]}/org/through-socket/notify-from-token";
}
/// <summary>
/// SendNotificationAsync
/// </summary>
/// <param name="token"></param>
/// <param name="error"></param>
/// <param name="message"></param>
public async Task SendNotificationAsync(string? token, bool error, string message)
{
if (string.IsNullOrEmpty(token))
@ -42,7 +49,7 @@ public class NotificationService
var json = JsonConvert.SerializeObject(payload);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync(NotifyEndpoint, content);
var response = await client.PostAsync(_notifyEndpoint, content);
if (!response.IsSuccessStatusCode)
{

View file

@ -121,7 +121,7 @@ var builder = WebApplication.CreateBuilder(args);
PrepareSchemaIfNecessary = true,
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
TablesPrefix = "Hangfire"
TablesPrefix = "Hangfire_Placement"
})));
builder.Services.AddHangfireServer();
}

View file

@ -130,7 +130,7 @@ var builder = WebApplication.CreateBuilder(args);
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
InvisibilityTimeout = TimeSpan.FromHours(3),
TablesPrefix = "Hangfire"
TablesPrefix = "Hangfire_Retirement"
})));
builder.Services.AddHealthChecks();
}