overhauled attendance visualization to be more useful for planning
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m22s
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m22s
This commit is contained in:
@@ -123,15 +123,9 @@ export async function setAttendanceStatus(memberID: number, eventID: number, sta
|
||||
}
|
||||
|
||||
export async function getEventAttendance(eventID: number): Promise<CalendarSignup[]> {
|
||||
const sql = `
|
||||
SELECT
|
||||
s.member_id,
|
||||
s.status,
|
||||
m.name AS member_name
|
||||
FROM calendar_events_signups s
|
||||
LEFT JOIN members m ON s.member_id = m.id
|
||||
WHERE s.event_id = ?
|
||||
`;
|
||||
|
||||
return await pool.query(sql, [eventID]);
|
||||
const sql = "CALL `sp_GetCalendarEventSignups`(?)"
|
||||
const res = await pool.query(sql, [eventID]);
|
||||
console.log(res[0]);
|
||||
return res[0];
|
||||
}
|
||||
Reference in New Issue
Block a user