From c171fe439c8deba619a1672a2f7a1c256f1d243b Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 1 Dec 2023 05:46:42 +0000 Subject: [PATCH] reapply ispromatch check --- store/queries.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/store/queries.js b/store/queries.js index 0e9f9227a..45c2f20f6 100644 --- a/store/queries.js +++ b/store/queries.js @@ -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 ?