mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 13:55:14 +00:00
11 lines
244 B
TypeScript
11 lines
244 B
TypeScript
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;
|
|
}
|