เปลี่ยนเส้น call api สำหรับเช็ค profileId
All checks were successful
Build & Deploy Retirement Service / build (push) Successful in 1m16s
Build & Deploy Placement Service / build (push) Successful in 1m17s
Build & Deploy Discipline Service / build (push) Successful in 1m32s

This commit is contained in:
harid 2026-01-28 15:06:55 +07:00
parent 02487d91ff
commit b10ff45d07
6 changed files with 18 additions and 9 deletions

View file

@ -135,7 +135,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
[HttpGet("user")]
public async Task<ActionResult<ResponseObject>> GetListByProfile()
{
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -185,7 +186,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
[HttpGet("user-cancel")]
public async Task<ActionResult<ResponseObject>> GetListByProfileCancel()
{
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
var apiUrl = $"{_configuration["API"]}/org/dotnet/get-profileId";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));