bulltrackers-module 1.0.80 → 1.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -457,9 +457,13 @@ async function runUnifiedComputation(dateToProcess, calculationsToRun, passName,
457
457
  successCount++;
458
458
  }
459
459
  } else {
460
- logger.log('INFO', `[${passName}] Calculation ${key} produced no results for ${dateStr}. Skipping write.`);
461
- // Still count as success if no result is valid output
462
- successCount++;
460
+ // --- START MODIFICATION ---
461
+ // REASON: Do not count a null/empty result as a success.
462
+ // This makes the failure visible in the summary log and ensures
463
+ // Pass 2 will detect the missing calculation for backfilling.
464
+ logger.log('WARN', `[${passName}] Calculation ${key} produced no results for ${dateStr}. Skipping write to allow backfill.`);
465
+ // DO NOT increment successCount here.
466
+ // --- END MODIFICATION ---
463
467
  }
464
468
  } catch (e) {
465
469
  logger.log('ERROR', `[${passName}] getResult/Commit failed for ${key} on ${dateStr}`, { err: e.message });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -31,7 +31,7 @@
31
31
  "@google-cloud/firestore": "^7.11.3",
32
32
  "sharedsetup": "latest",
33
33
  "require-all": "^3.0.0",
34
- "aiden-shared-calculations-unified": "1.0.0",
34
+ "aiden-shared-calculations-unified": "1.0.8",
35
35
  "@google-cloud/pubsub": "latest",
36
36
  "express": "^4.19.2",
37
37
  "cors": "^2.8.5",