User table polish and audit log updates

This commit is contained in:
Jamie Curnow
2025-09-24 21:11:00 +10:00
parent fc8a5e8b97
commit a3d17249d0
14 changed files with 163 additions and 38 deletions

View File

@@ -0,0 +1,10 @@
import type { User } from "./models";
import { updateUser } from "./updateUser";
export async function toggleUser(id: number, enabled: boolean): Promise<boolean> {
await updateUser({
id,
isDisabled: !enabled,
} as User);
return true;
}