Skip to content

Commit

Permalink
feat(badges): add yearly plans
Browse files Browse the repository at this point in the history
so it doesn't show 'payment required'
  • Loading branch information
Realtin authored Jul 31, 2018
1 parent 8b1d8e5 commit e8dac0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ 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', 'team', 'business'].includes(payDoc.plan)) return [enabled[style], etags['enabled'][style]]
if (['org', 'personal', 'org_year', 'personal_year', 'team', 'business'].includes(payDoc.plan)) return [enabled[style], etags['enabled'][style]]
return [paymentRequired[style], etags['paymentRequired'][style]]
}

Expand Down

0 comments on commit e8dac0a

Please sign in to comment.