bulltrackers-module 1.0.669 → 1.0.671
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.
|
@@ -80,16 +80,13 @@ function checkRootDependencies(calcManifest, rootDataStatus) {
|
|
|
80
80
|
else missingKey = key;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
// 2. Check Availability
|
|
83
|
+
// 2. Check Availability
|
|
84
|
+
// [FIX] Removed Optimistic Series Fallback.
|
|
85
|
+
// Just because we want history (series) doesn't mean the data type exists for this date.
|
|
84
86
|
if (isAvailable) {
|
|
85
87
|
available.push(dep);
|
|
86
88
|
} else {
|
|
87
|
-
|
|
88
|
-
if (calcManifest.rootDataSeries?.[dep]) {
|
|
89
|
-
available.push(dep);
|
|
90
|
-
} else {
|
|
91
|
-
missing.push(missingKey);
|
|
92
|
-
}
|
|
89
|
+
missing.push(missingKey);
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
92
|
|
|
@@ -176,13 +176,9 @@ async function commitResults(stateObj, dStr, passName, config, deps, skipStatusW
|
|
|
176
176
|
_pageCount: pageCountValue,
|
|
177
177
|
_lastUpdated: new Date().toISOString(),
|
|
178
178
|
_expireAt: expireAt,
|
|
179
|
-
_completed: isFinalFlush
|
|
179
|
+
_completed: isFinalFlush ? true : false // Always a boolean: true when final flush, false otherwise
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
// Adjust logic to correctly set _completed only on final flush
|
|
183
|
-
if (isFinalFlush) headerData._completed = true;
|
|
184
|
-
else if (isInitialWrite) headerData._completed = false;
|
|
185
|
-
|
|
186
182
|
await mainDocRef.set(headerData, { merge: !isInitialWrite });
|
|
187
183
|
|
|
188
184
|
runMetrics.io.writes += 1;
|