From ed16693856de191361c1ab4d6cb5f653868185dd Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 29 Apr 2021 13:05:06 -0500 Subject: rename minion_count to unique_minions --- build/database.js | 4 ++-- src/database.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/database.js b/build/database.js index f3eda16..45b0179 100644 --- a/build/database.js +++ b/build/database.js @@ -111,7 +111,7 @@ function getMemberLeaderboardAttributes(member) { function getProfileLeaderboardAttributes(profile) { // if you want to add a new leaderboard for member attributes, add it here (and getAllLeaderboardAttributes) return { - minion_count: profile.minion_count + unique_minions: profile.minion_count }; } async function fetchAllLeaderboardsCategorized() { @@ -171,7 +171,7 @@ exports.fetchAllMemberLeaderboardAttributes = fetchAllMemberLeaderboardAttribute /** Fetch the names of all the leaderboards that rank profiles */ async function fetchAllProfileLeaderboardAttributes() { return [ - 'minion_count' + 'unique_minions' ]; } function isLeaderboardReversed(name) { diff --git a/src/database.ts b/src/database.ts index 6077025..8aa334a 100644 --- a/src/database.ts +++ b/src/database.ts @@ -135,7 +135,7 @@ function getMemberLeaderboardAttributes(member: CleanMember): StringNumber { function getProfileLeaderboardAttributes(profile: CleanFullProfile): StringNumber { // if you want to add a new leaderboard for member attributes, add it here (and getAllLeaderboardAttributes) return { - minion_count: profile.minion_count + unique_minions: profile.minion_count } } @@ -206,7 +206,7 @@ export async function fetchAllMemberLeaderboardAttributes(): Promise { /** Fetch the names of all the leaderboards that rank profiles */ async function fetchAllProfileLeaderboardAttributes(): Promise { return [ - 'minion_count' + 'unique_minions' ] } -- cgit