Skip to content

Commit

Permalink
more named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 4, 2023
1 parent 0cac4a5 commit 2325567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions store/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function getProPeers(db, input, player, cb) {
});
}

function getMatchRankTier(match, cb) {
export function getMatchRankTier(match, cb) {
async.map(
match.players,
(player, cb) => {
Expand Down Expand Up @@ -1287,7 +1287,6 @@ export default {
getLaneRoles,
getTeamScenarios,
getMetadata,
getMatchRankTier,
getMatchData,
getPlayerMatchData,
getArchivedMatch,
Expand Down
4 changes: 1 addition & 3 deletions svc/counts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import moment from 'moment';
import redis from '../store/redis.mjs';
import db from '../store/db.mjs';
import utility from '../util/utility.mjs';
import queries, { insertPlayerPromise, bulkIndexPlayer } from '../store/queries.mjs';
import { getMatchRankTier, insertPlayerPromise, bulkIndexPlayer, upsertPromise } from '../store/queries.mjs';
import queue from '../store/queue.mjs';
import config from '../config.js';
const { getMatchRankTier, upsertPromise } =
queries;
const { getAnonymousAccountId, isRadiant, isSignificant } = utility;
function updateHeroRankings(match, cb) {
getMatchRankTier(match, (err, avg) => {
Expand Down

0 comments on commit 2325567

Please sign in to comment.