10 lines
305 B
TypeScript
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,
|
|
});
|
|
}
|