fixed overdue LOA's not being sent to the client
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user