added support for getting all training reports

This commit is contained in:
2025-11-16 10:15:52 -05:00
parent 810a15d279
commit 4d0dea553e
2 changed files with 17 additions and 1 deletions

View File

@@ -84,4 +84,10 @@ export async function insertCourseEvent(event: CourseEventDetails): Promise<numb
await con.release();
return eventID;
}
}
export async function getCourseEvents(): Promise<CourseEventDetails[]> {
const sql = "SELECT * FROM course_events;";
let events: CourseEventDetails[] = await pool.query(sql);
return events;
}