of type OrganizationRoleWhereUniqueInput needs at least one of
id
id
arguments. Available options are marked with ?.
await authClient.organization.updateRole( { // roleName: role, //old role name roleId: roleId, organizationId: storeId, //store id needed data: { // required permission, roleName: role, //new role name roleColor, roleDescription, }, },
This one does not allow user to delete OrgRoles { "code": "THAT_ROLE_NAME_IS_ALREADY_TAKEN", "message": "That role name is already taken" i just want to update the existing role not create new role with the same name . }