fixed overdue LOA's not being sent to the client

This commit is contained in:
2026-02-02 00:28:31 -05:00
parent bd0820ffc8
commit 321cb80c06

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;
}