Fix null reference for CheckIn and CheckOut location names in LeaveController
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m21s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m21s
This commit is contained in:
parent
90eb94cee3
commit
4c189fdc4a
1 changed files with 2 additions and 2 deletions
|
|
@ -1462,7 +1462,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
"LATE" :
|
||||
"NORMAL",
|
||||
CheckInIsLocation = d.IsLocationCheckIn,
|
||||
CheckInLocationName = d.CheckInLocationName,
|
||||
CheckInLocationName = d.CheckInLocationName ?? "",
|
||||
CheckOutDate = d.CheckOut == null ? null : d.CheckOut.Value.Date,
|
||||
CheckOutTime = d.CheckOut == null ? "" : d.CheckOut.Value.ToString("HH:mm:ss"),
|
||||
CheckOutLocation = d.CheckOutPOI ?? "",
|
||||
|
|
@ -1477,7 +1477,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
"NORMAL",
|
||||
|
||||
CheckOutIsLocation = d.IsLocationCheckOut,
|
||||
CheckOutLocationName = d.CheckOutLocationName,
|
||||
CheckOutLocationName = d.CheckOutLocationName ?? "",
|
||||
|
||||
IsEdit = _processUserTimeStampRepository.IsEditRequest(userId, d.CheckIn.Date)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue