Skip to content

Commit

Permalink
reapply ispromatch check
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 1, 2023
1 parent b5be678 commit c171fe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions store/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ function insertMatch(match, options, cb) {
}

async function upsertMatchPostgres(cb) {
if (options.type === 'api' && !utility.isProMatch(match)) {
// Check if the match is legit if this is API insert
return cb();
}
// Check if leagueid is premium/professional
const result =
match.leagueid ?
Expand Down

0 comments on commit c171fe4

Please sign in to comment.