Skip to content

Conversation

@OrFrenkelZooz
Copy link
Collaborator

No description provided.

@OrFrenkelZooz OrFrenkelZooz requested a review from NivLipetz April 16, 2020 16:13
const subscriber = report.subscribers.find(subscriber => subscriber.runner_id === stats.runner_id);
const { last_stats } = subscriber;
if (last_stats && parseData.rps) {
const lastTotalCount = _.get(last_stats, 'rps.total_count') || 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const lastTotalCount = _.get(last_stats, 'rps.total_count') || 0;
const lastTotalCount = _.get(last_stats, 'rps.total_count', 0);

see https://lodash.com/docs/4.17.15#get

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

@NivLipetz NivLipetz merged commit fa61a39 into master Apr 16, 2020
@enudler enudler deleted the avg-rps-reports branch April 17, 2020 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants