Compare commits

..

No commits in common. "dev" and "leave-dev1.0.166" have entirely different histories.

5 changed files with 5 additions and 16 deletions

View file

@ -889,10 +889,6 @@ 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_Discipline"
TablesPrefix = "Hangfire"
})));
builder.Services.AddHangfireServer();
}

View file

@ -11,22 +11,15 @@ public class NotificationService
private readonly ILogger<NotificationService> _logger;
private readonly IConfiguration _configuration;
private string _notifyEndpoint;
private const string NotifyEndpoint = "https://hrmsbkk.case-collection.com/api/v1/org/through-socket/notify-from-token";
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))
@ -49,7 +42,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_Placement"
TablesPrefix = "Hangfire"
})));
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_Retirement"
TablesPrefix = "Hangfire"
})));
builder.Services.AddHealthChecks();
}