change endPoint

This commit is contained in:
Bright 2024-06-21 17:53:32 +07:00
parent c60c647a81
commit 0495d0f647

View file

@ -12305,7 +12305,7 @@ namespace BMA.EHR.Application.Repositories.Commands
// create new profile
foreach (var profile in profiles)
{
var apiUrl = $"{_baseAPI}/org/profile/all";
var apiUrl = $"{_baseAPI}/org/profile/all/dump-db";
var profileId = string.Empty;
using (var client = new HttpClient())
{
@ -12580,7 +12580,7 @@ namespace BMA.EHR.Application.Repositories.Commands
if (profile.Leaves.Count > 0)
{
var apiUrlLeave = $"{_baseAPI}/org/profile/leave";
var apiUrlLeave = $"{_baseAPI}/org/profile/leave/dump-db";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -12735,7 +12735,7 @@ namespace BMA.EHR.Application.Repositories.Commands
if (profile.Insignias.Count > 0)
{
var apiUrlInsig = $"{_baseAPI}/org/profile/insignia";
var apiUrlInsig = $"{_baseAPI}/org/profile/insignia/dump-db";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));