Fixed bug regrading passing incorrect tenantId and sending list of active and inactive employees rather than list of active or inactive employees #10

Merged
vikas.nale merged 2 commits from Ashutosh_Bug#37_Attendance_Issues into Issuses 2025-04-02 10:25:06 +00:00
Showing only changes of commit 414bf7ece1 - Show all commits

View File

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