Skip to content

Commit

Permalink
fix leagueid prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jun 19, 2016
1 parent a628f58 commit 8b77717
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ var defaults = {
"UI_HOST": "", //The host of the UI, redirect traffic from / and /return here
"ENABLE_RECAPTCHA": "", //set to enable the recaptcha on the Request page
"ENABLE_ADS": "", //set to turn on ads
"ENABLE_PRO_PARSING": "", // set to parse pro matches from sequential API
"ENABLE_MATCH_CACHE": "", // set to enable caching matches (Redis)
"ENABLE_PLAYER_CACHE": "", // set to enable caching players (Cassandra)
"ENABLE_INSERT_ALL_MATCHES": "", //set to enable inserting all matches
Expand Down
15 changes: 11 additions & 4 deletions store/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,18 @@ function insertMatch(db, redis, match, options, cb)

function isProMatch(cb)
{
redis.sismember('pro_leagueids', match.league_id, function(err, result)
if (match.leagueid)
{
match.isProMatch = Boolean(Number(result));
cb(err);
});
redis.sismember('pro_leagueids', match.leagueid, function(err, result)
{
match.isProMatch = Boolean(Number(result));
cb(err);
});
}
else
{
cb();
}
}

function upsertMatch(cb)
Expand Down

0 comments on commit 8b77717

Please sign in to comment.