Update ui/src/components/trainingReport/trainingReportForm.vue #36
@@ -2,7 +2,7 @@ import pool from "../db"
|
||||
import { Course, CourseAttendee, CourseAttendeeRole, CourseEventDetails, CourseEventSummary, RawAttendeeRow } from "@app/shared/types/course"
|
||||
import { toDateTime } from "@app/shared/utils/time";
|
||||
export async function getAllCourses(): Promise<Course[]> {
|
||||
const sql = "SELECT * FROM courses WHERE deleted = false;"
|
||||
const sql = "SELECT * FROM courses WHERE deleted = false ORDER BY name ASC;"
|
||||
|
||||
const res: Course[] = await pool.query(sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user