Merge branch 'main' into devcontainers

This commit is contained in:
2026-02-03 19:09:30 -06:00
2 changed files with 7 additions and 3 deletions

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