Skip to content

CompanyUpdateBuilder.java contains function to update session_count, which isn't possible #231

@Schwarzglut

Description

@Schwarzglut

CompanyUpdateBuilder.java contains a function to update the session count of a company, we don't allow the updating of session count so this is throwing a "bad 'session_count' parameter" when trying to update a company.

Line of code:

updatableCompany.setSessionCount(company.getSessionCount());

Version info

  • intercom-java version: 2.5.2
  • Java version:

Expected behavior

You can't update the session count of a user or company.

Actual behavior

We're allowing the attempt to update the session count of a company

Steps to reproduce

  1. Create a user
  2. Attempt to add a company to that user (user.addCompany(company);)
  3. See in your logs the "bad 'session_count' parameter" issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions