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

@@ -47,6 +47,7 @@ export * from "./toggleDeadHost";
export * from "./toggleProxyHost";
export * from "./toggleRedirectionHost";
export * from "./toggleStream";
export * from "./toggleUser";
export * from "./updateAccessList";
export * from "./updateAuth";
export * from "./updateDeadHost";

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