Fixed bug about UpdatedBy

This commit is contained in:
ashutosh.nehete 2025-04-02 13:37:03 +05:30
parent ac6f52ce16
commit 414bf7ece1

View File

@ -38,11 +38,6 @@ namespace MarcoBMS.Services.Controllers
//var tenant = User.FindFirst("TenantId")?.Value;
//return (tenant != null ? Convert.ToInt32(tenant) : 1);
}
private int GetUserId()
{
var user = _userHelper.GetCurrentUserAsync();
return user.Id;
}
[HttpGet("log/attendance/{attendanceid}")]
@ -304,7 +299,7 @@ namespace MarcoBMS.Services.Controllers
Longitude = recordAttendanceDot.Longitude,
TenantId = TenantId,
UpdatedBy = GetUserId(),
UpdatedBy = recordAttendanceDot.EmployeeID,
UpdatedOn = recordAttendanceDot.Date
};
//if (recordAttendanceDot.Image != null && recordAttendanceDot.Image.Count > 0)