-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Labels
Description
Description
A user reported that when making a fetching a company, the company session count is 0 even when company has had multiple sessions. Company object is being returned correctly but the session count parsing doesn't seem to be working.
Evidence
User's code:
Company company = Company.find(of("company_id", vendor.getId().toString()));
Logger.debug("Company has {} sessions", company.getSessionCount());
Returns:
[warn] 14:31:52.892 [play-dev-mode-akka.actor.default-dispatcher-49] - Error fetching payment contracts for vendor: 144
[debug] 14:31:53.141 [play-dev-mode-akka.actor.default-dispatcher-49] - api server response status[200] --
{"type":"company","company_id":"...","id":"...","app_id":"...","name":"...","remote_created_at": ...,"created_at": ...,"updated_at": ...,"last_request_at": ...,"monthly_spend": ...,"session_count": 758,"user_count": ...,"tags":{ ...},"segments":{...},"plan":{...},"custom_attributes":{...}}
--
[debug] 14:31:53.142 [play-dev-mode-akka.actor.default-dispatcher-49] - Company has 0 sessions
Steps to reproduce
- Grab Company object from Java SDK.
- Call getSessionCount() on company
- Returns '0' every time