User table polish and audit log updates

This commit is contained in:
Jamie Curnow committed 2025-10-02 08:12:37 +10:00
1 parent fc8a5e8b97
commit a3d17249d0
14 files changed
+163 -38

No files matched your search

+10
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;
}