User table polish and audit log updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user