Skip to content

Commit

Permalink
Merge pull request #43 from greenkeeperio/add_euro_pricing
Browse files Browse the repository at this point in the history
feat: add euro pricing plans
  • Loading branch information
janl authored Aug 8, 2018
2 parents b58761c + 302d7a2 commit 5b054fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ module.exports = async function badges (server, options, next) {
if (!repoDoc.enabled) return [disabled[style], etags['disabled'][style]]
if (!repoDoc.private) return [enabled[style], etags['enabled'][style]]
if (!payDoc) return [paymentRequired[style], etags['paymentRequired'][style]]
if (['org', 'personal', 'org_year', 'personal_year', 'team', 'business'].includes(payDoc.plan)) return [enabled[style], etags['enabled'][style]]
if ([
'org', 'org_year', 'org_eur', 'org_year_eur',
'personal', 'personal_year', 'personal_eur', 'personal_year_eur',
'team', 'business'
].includes(payDoc.plan)) return [enabled[style], etags['enabled'][style]]
return [paymentRequired[style], etags['paymentRequired'][style]]
}

Expand Down

0 comments on commit 5b054fe

Please sign in to comment.