aboutsummaryrefslogtreecommitdiff
path: root/build/database.js
diff options
context:
space:
mode:
authormat-1 <github@matdoes.dev>2021-03-01 03:23:15 +0000
committermat-1 <github@matdoes.dev>2021-03-01 03:23:15 +0000
commit19a6844cafd84cff79f5df08f7a9f08504f67e70 (patch)
tree489a57d71df73a90702fb347b594361f6e3c723f /build/database.js
parent14622b310f170daa7d720da85c65a68dc6784702 (diff)
downloadskyblock-api-19a6844cafd84cff79f5df08f7a9f08504f67e70.tar.gz
skyblock-api-19a6844cafd84cff79f5df08f7a9f08504f67e70.tar.bz2
skyblock-api-19a6844cafd84cff79f5df08f7a9f08504f67e70.zip
Compiled TS into JS
Diffstat (limited to 'build/database.js')
-rw-r--r--build/database.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/database.js b/build/database.js
index ca23273..fdcc01b 100644
--- a/build/database.js
+++ b/build/database.js
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
-exports.updateDatabaseMember = exports.fetchMemberLeaderboard = exports.fetchAllMemberLeaderboardAttributes = exports.fetchAllLeaderboardsCategoriezed = void 0;
+exports.updateDatabaseMember = exports.fetchMemberLeaderboard = exports.fetchAllMemberLeaderboardAttributes = exports.fetchAllLeaderboardsCategorized = void 0;
const constants = __importStar(require("./constants"));
const cached = __importStar(require("./hypixelCached"));
const mongodb_1 = require("mongodb");
@@ -76,7 +76,7 @@ function getMemberLeaderboardAttributes(member) {
visited_zones: member.visited_zones.length,
};
}
-async function fetchAllLeaderboardsCategoriezed() {
+async function fetchAllLeaderboardsCategorized() {
const memberLeaderboardAttributes = await fetchAllMemberLeaderboardAttributes();
const categorizedLeaderboards = {};
for (const leaderboard of memberLeaderboardAttributes) {
@@ -91,7 +91,7 @@ async function fetchAllLeaderboardsCategoriezed() {
categorizedLeaderboards.misc = misc;
return categorizedLeaderboards;
}
-exports.fetchAllLeaderboardsCategoriezed = fetchAllLeaderboardsCategoriezed;
+exports.fetchAllLeaderboardsCategorized = fetchAllLeaderboardsCategorized;
/** Fetch the names of all the leaderboards */
async function fetchAllMemberLeaderboardAttributes() {
return [