added support for integrated rank changes
All checks were successful
Pull Request CI / Merge Check (pull_request) Successful in 3m27s

This commit is contained in:
2026-03-02 20:30:01 -05:00
parent a988545dda
commit adc9da6a40
5 changed files with 78 additions and 8 deletions

View File

@@ -14,8 +14,8 @@ export async function getUnits(): Promise<Unit[]> {
return response.json();
}
export async function adminAssignUnit(member: number, unit: number, reason: string) {
const response = await fetch(`${addr}/memberUnits/admin?memberId=${member}&unitId=${unit}&reason=${encodeURIComponent(reason)}`, {
export async function adminAssignUnit(member: number, unit: number, rank: number, reason: string) {
const response = await fetch(`${addr}/memberUnits/admin?memberId=${member}&unitId=${unit}&rankId=${rank}&reason=${encodeURIComponent(reason)}`, {
method: 'POST',
credentials: 'include'
});