Skip to content

Commit

Permalink
feat: adding TwitchID to export
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartorn committed Mar 29, 2019
1 parent ea92c04 commit e3ce7a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/events/detail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ class DetailEventView extends React.Component {
}

exportValidated() {
const header = ['Pseudo;NbVue;NbFollow;UrlTwitch'];
const header = ["TwitchId;Pseudo;NbVue;NbFollow;UrlTwitch"];
const data = (this.props.userList || [])
.filter(({ status }) => status === 'VALIDATED')
.sort((a, b) => this.compare(a, b, this.state.triValidated))
.map(({ username, views, followers, url }) =>
`${username};${views};${followers};${url}`
.map(({ twitchId, username, views, followers, url }) =>
`${twitchId};${username};${views};${followers};${url}`
);
const fileName = `${this.props.event.name}_validated.csv`.replace(/ /g, '_');

Expand Down

0 comments on commit e3ce7a0

Please sign in to comment.