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
- Create a user
- Attempt to add a company to that user (user.addCompany(company);)
- See in your logs the "bad 'session_count' parameter" issue