Fix Bug บันทึก กรณีต้องใช้ Token เพื่อนำไปแนบเพื่อติดต่อ nodejs

This commit is contained in:
Suphonchai Phoonsawat 2023-09-02 21:38:31 +07:00
parent 7edd71e404
commit 431d0981ae
2 changed files with 17 additions and 4 deletions

View file

@ -1890,7 +1890,7 @@ namespace BMA.EHR.Application.Repositories.Commands
#region " Command Receiver "
public async Task SaveSelectedReceiverAsync(Guid id, List<Guid> selected)
public async Task SaveSelectedReceiverAsync(Guid id, List<Guid> selected, string token = "")
{
try
{
@ -1902,7 +1902,7 @@ namespace BMA.EHR.Application.Repositories.Commands
if (command == null)
throw new Exception(GlobalMessages.CommandNotFound);
var ap = (await GetReceiverForByCommndTypeAsync(command)).Where(x => selected.Contains(x.RefPlacementProfileId!.Value));
var ap = (await GetReceiverForByCommndTypeAsync(command, token)).Where(x => selected.Contains(x.RefPlacementProfileId!.Value));
//var appointPeople = await _dbContext.Set<PlacementProfile>()
// .Include(x => x.Prefix)