fix #2591
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m46s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m46s
This commit is contained in:
parent
def3992d44
commit
43740ec9b2
2 changed files with 2 additions and 3 deletions
|
|
@ -315,8 +315,6 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
if (doc != null)
|
||||
{
|
||||
leaveRequest.LeaveDocument.Add(new LeaveDocument { Document = doc });
|
||||
var a = leaveRequest.LeaveDocument.Last();
|
||||
_context.Entry(a).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -328,7 +326,6 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
if (doc != null)
|
||||
{
|
||||
leaveRequest.LeaveDraftDocument = doc;
|
||||
_context.Entry(leaveRequest.LeaveDraftDocument).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue