fix hangfire แยก job ออกจากกัน และแก้เรื่องการส่ง token
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
Suphonchai Phoonsawat 2025-11-11 10:40:49 +07:00
parent 998ca38da8
commit f081034e36
4 changed files with 21 additions and 7 deletions

View file

@ -146,7 +146,7 @@ namespace BMA.EHR.Application.Repositories
// สร้าง HTTP content
//var body = new StringContent(bodyJson, Encoding.UTF8, "application/json");
var apiResult = await PostExternalAPIAsync(apiPath, accessToken, body, apiKey);
var apiResult = await PostExternalAPIAsync(apiPath, accessToken ?? "", body, apiKey);
if (apiResult != null)
{
@ -157,7 +157,7 @@ namespace BMA.EHR.Application.Repositories
return null;
}
catch
catch(Exception ex)
{
throw;
}