added support for getting all training reports
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user