2025-01-15 17:13:22 +03:00

10 lines
305 B
TypeScript

/* eslint-disable canonical/id-match */
import { updateProfile } from '@/actions/profile';
import { Enum_Customer_Role } from '@repo/graphql/types';
export function updateRole(checked: boolean) {
return updateProfile({
role: checked ? Enum_Customer_Role.Master : Enum_Customer_Role.Client,
});
}