Upgraded handling of duplicate member roles Close #56

This commit is contained in:
2025-12-18 22:38:36 -05:00
parent 80786f996f
commit 8903baef52
2 changed files with 7 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ import pool from '../db';
import { Role, RoleSummary } from '@app/shared/types/roles'
export async function assignUserGroup(userID: number, roleID: number) {
const sql = `INSERT INTO members_roles (member_id, role_id) VALUES (?, ?);`;
const params = [userID, roleID];