Removed a whole bunch of old logging

This commit is contained in:
2025-12-17 09:40:11 -05:00
parent 637968552d
commit a7c2ed7dff
13 changed files with 1 additions and 26 deletions

View File

@@ -89,13 +89,11 @@ export async function closeLOA(id: number, closer: number) {
ended_at = NOW()
WHERE leave_of_absences.id = ?`;
let out = await pool.query(sql, [closer, id]);
console.log(out);
return out;
}
export async function getLOAbyID(id: number): Promise<LOARequest> {
let res = await pool.query(`SELECT * FROM leave_of_absences WHERE id = ?`, [id]);
console.log(res);
if (res.length != 1)
throw new Error(`LOA with id ${id} not found`);
return res[0];