A faulty conditional was causing endpoints that return objects to be sent without the {data: ...} wrapper that the app expects. The improved conditional allows endpoints to either return an object, for example a hash with expiration like {expiration: [date], data: 52} or a raw data point like 52.
A faulty conditional was causing endpoints that return objects to be sent without the
{data: ...}
wrapper that the app expects. The improved conditional allows endpoints to either return an object, for example a hash with expiration like{expiration: [date], data: 52}
or a raw data point like52
.