From 321cb80c066bf9968bb419702eb08125d6476a8a Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Mon, 2 Feb 2026 00:28:31 -0500 Subject: [PATCH] fixed overdue LOA's not being sent to the client --- api/src/services/db/loaService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/services/db/loaService.ts b/api/src/services/db/loaService.ts index d6a9c40..b7131bf 100644 --- a/api/src/services/db/loaService.ts +++ b/api/src/services/db/loaService.ts @@ -69,7 +69,7 @@ export async function getUserActiveLOA(userId: number): Promise { 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; }