Skip to content

Commit

Permalink
increase cache length on AUR version badge, run [AUR] (#8110)
Browse files Browse the repository at this point in the history
* refactor(aurversion): increase cache length

* chore: appease linter

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
  • Loading branch information
calebcartwright and repo-ranger[bot] authored Jun 22, 2022
1 parent c87a215 commit 1468601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/aur/aur.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ class AurVotes extends BaseAurService {

class AurVersion extends BaseAurService {
static category = 'version'

static route = { base: 'aur/version', pattern: ':packageName' }

static examples = [
{
title: 'AUR version',
Expand All @@ -119,6 +117,8 @@ class AurVersion extends BaseAurService {
},
]

static _cacheLength = 3600

static render({ version, outOfDate }) {
const color = outOfDate === null ? 'blue' : 'orange'
return { message: addv(version), color }
Expand Down

0 comments on commit 1468601

Please sign in to comment.