Files
Compass/web/lib/util/disable.ts
2025-10-27 00:37:54 +01:00

7 lines
250 B
TypeScript

import {track} from "web/lib/service/analytics";
import {updateProfile} from "web/lib/api";
export async function disableProfile(disabled: boolean) {
track(`disable profile ${disabled ? 'on' : 'off'}`)
await updateProfile({disabled: disabled})
}