chore: remove debug checkpoint logs and temp SQL files
Deploy Iddaai Backend / build-and-deploy (push) Successful in 37s

This commit is contained in:
2026-04-26 17:09:22 +03:00
parent 691c52f610
commit 7a8960edb8
-5
View File
@@ -337,7 +337,6 @@ export class FeederService {
const apiReturnedCount = allMatches.length;
const afterDateFilterCount = dateFilteredMatches.length;
this.logger.warn(`[${sport}] [${dateString}] ⏱️ CHECKPOINT-1: dateFilter done. API=${apiReturnedCount}, filtered=${afterDateFilterCount}`);
if (apiReturnedCount > 0 && afterDateFilterCount === 0) {
this.logger.log(
@@ -388,17 +387,13 @@ export class FeederService {
// 2. Filter out already existing matches & patch incomplete ones
const allIds = matchesToProcess.map((m) => m.id);
this.logger.warn(`[${sport}] [${dateString}] ⏱️ CHECKPOINT-2: pre-getExistingMatchIds, ${allIds.length} IDs`);
const existingIds =
await this.persistenceService.getExistingMatchIds(allIds);
this.logger.warn(`[${sport}] [${dateString}] ⏱️ CHECKPOINT-3: getExistingMatchIds done, ${existingIds.length} existing`);
const totalCount = matchesToProcess.length;
// ── Patch incomplete existing matches ──────────────────────
// Find matches that ARE in DB but have missing data scopes
this.logger.warn(`[${sport}] [${dateString}] ⏱️ CHECKPOINT-4: pre-getMissingScopes`);
const allExistingInDb = await this.persistenceService.getMissingScopes(allIds);
this.logger.warn(`[${sport}] [${dateString}] ⏱️ CHECKPOINT-5: getMissingScopes done, ${allExistingInDb.size} incomplete`);
if (allExistingInDb.size > 0) {
this.logger.log(
`[${sport}] [${dateString}] 🔧 Found ${allExistingInDb.size} existing matches with missing data. Patching...`,