Compare commits

...

2 Commits

Author SHA1 Message Date
ac22e36202 Fixed everyone getting my roles
All checks were successful
Continuous Integration / Update Development (push) Successful in 2m23s
Continuous Deployment / Update Deployment (push) Successful in 2m25s
2025-12-17 12:57:09 -05:00
3180097aa7 Merge pull request 'Group/role-tweaks' (#117) from Group/role-tweaks into main
All checks were successful
Continuous Integration / Update Development (push) Successful in 2m11s
Continuous Deployment / Update Deployment (push) Successful in 2m26s
Reviewed-on: #117
2025-12-17 09:37:06 -06:00

View File

@@ -21,7 +21,7 @@ export async function getUserRoles(userID: number): Promise<Role[]> {
const sql = `SELECT r.id, r.name
FROM members_roles mr
INNER JOIN roles r ON mr.role_id = r.id
WHERE mr.member_id = 190;`;
WHERE mr.member_id = ?;`;
return await pool.query(sql, [userID]);
}