#54-Application-tweaks #62

Merged
Ajdj100 merged 12 commits from #54-Application-tweaks into main 2025-12-11 19:54:03 -06:00
Showing only changes of commit 4a65596283 - Show all commits

View File

@@ -13,12 +13,16 @@ export async function getMemberApplication(memberID: number): Promise<Applicatio
member.name AS member_name
FROM applications AS app
INNER JOIN members AS member ON member.id = app.member_id
WHERE app.member_id = ?;`;
WHERE app.member_id = ? ORDER BY submitted_at DESC LIMIT 1;`;
let app: ApplicationRow[] = await pool.query(sql, [memberID]);
return app[0];
}
// export async function getAllMemberApplications(memberID: number): Promise<ApplicationListRow[]> {
// }
export async function getApplicationByID(appID: number): Promise<ApplicationRow> {
const sql =
`SELECT app.*,