fix: contribute resolver

pull/663/head
Nicolas Giard 6 years ago
parent 0bd9c36db5
commit ca9ab4705d

@ -11,7 +11,7 @@ module.exports = {
uri: 'https://opencollective.com/wikijs/members/all.json', uri: 'https://opencollective.com/wikijs/members/all.json',
json: true json: true
}) })
const dude = _.filter(resp, c => { return _.filter(resp, c => {
return c.role === 'BACKER' && c.totalAmountDonated > 0 return c.role === 'BACKER' && c.totalAmountDonated > 0
}).map(c => ({ }).map(c => ({
company: _.get(c, 'company', '') || '', company: _.get(c, 'company', '') || '',
@ -26,8 +26,6 @@ module.exports = {
twitter: _.get(c, 'twitter', '') || '', twitter: _.get(c, 'twitter', '') || '',
website: _.get(c, 'website', '') || '' website: _.get(c, 'website', '') || ''
})) }))
console.info(dude)
return dude
} }
} }
} }

Loading…
Cancel
Save