fix hangfire แยก job ออกจากกัน และแก้เรื่องการส่ง token
Some checks failed
release-dev / release-dev (push) Failing after 11s
Some checks failed
release-dev / release-dev (push) Failing after 11s
This commit is contained in:
parent
998ca38da8
commit
f081034e36
4 changed files with 21 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue