Skip to content

Commit

Permalink
fix(list): correct revenue reduction for correct sum
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephigenia committed Nov 22, 2018
1 parent e833a2d commit 6f24c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/mite-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const COLUMNS_OPTIONS = {
},
reducer: (sum, cur) => {
if (!sum) sum = 0;
return sum + cur.minutes;
return sum + cur.revenue;
}
},
service: {
Expand Down Expand Up @@ -285,7 +285,7 @@ program
.option(
'-f, --format <format>',
'defines the output format, valid options are ' + DataOutput.FORMATS.join(', '),
'table',
'table'
)
.action(main)
.parse(process.argv)
Expand Down

0 comments on commit 6f24c46

Please sign in to comment.