Skip to content

Commit

Permalink
Update aur.service.js based on chris48s comments
Browse files Browse the repository at this point in the history
  • Loading branch information
matinlotfali authored Jun 29, 2024
1 parent a468a88 commit 3e6322e
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 @@ -138,14 +138,14 @@ class AurPopularity extends BaseAurService {

static render({ popularity }) {
return {
message: metric(popularity),
message: popularity,
color: floorCountColor(popularity, 0.5, 2.5, 5),
}
}

async handle({ packageName }) {
const json = await this.fetch({ packageName })
return this.constructor.render({ votes: json.results[0].Popularity })
return this.constructor.render({ popularity: json.results[0].Popularity })
}
}

Expand Down

0 comments on commit 3e6322e

Please sign in to comment.