#177-Overdue-LOA-not-showing #178

Merged
Ajdj100 merged 2 commits from #177-Overdue-LOA-not-showing into main 2026-02-01 23:35:00 -06:00
Showing only changes of commit 321cb80c06 - Show all commits

View File

@@ -69,7 +69,7 @@ export async function getUserActiveLOA(userId: number): Promise<LOARequest[]> {
FROM leave_of_absences
WHERE member_id = ?
AND closed IS NULL
AND UTC_TIMESTAMP() BETWEEN start_date AND end_date;`
AND UTC_TIMESTAMP() > start_date;`
const LOAData = await pool.query(sql, [userId]);
return LOAData;
}