Skip to content

Commit a8532e3

Browse files
committed
Fixing create/update worker with a required email.
1 parent ddbc4bf commit a8532e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/Infrastructure/Helpers/BackendConfigurationAssignmentWorkerServiceHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ public static async Task<OperationResult> UpdateDeviceUser(DeviceUserModel devic
294294
worker.PinCode = deviceUserModel.PinCode;
295295
}
296296
worker.EmployeeNo = deviceUserModel.EmployeeNo;
297+
worker.Email = deviceUserModel.WorkerEmail;
297298
await worker.Update(sdkDbContext).ConfigureAwait(false);
298299

299300
if (isUpdated)
@@ -519,6 +520,7 @@ public static async Task<OperationDataResult<int>> CreateDeviceUser(DeviceUserMo
519520

520521
worker.EmployeeNo = deviceUserModel.EmployeeNo;
521522
worker.PinCode = deviceUserModel.PinCode;
523+
worker.Email = deviceUserModel.WorkerEmail;
522524
await worker.Update(sdkDbContext).ConfigureAwait(false);
523525

524526
if (deviceUserModel.TimeRegistrationEnabled == true)

0 commit comments

Comments
 (0)