bulltrackers-module 1.0.576 → 1.0.577

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.
@@ -198,8 +198,11 @@ async function getUserDataStatus(req, res, dependencies, config) {
198
198
  }
199
199
  }
200
200
 
201
+ // Check if we've exhausted the fallback window
202
+ const fallbackWindowExhausted = !foundDate;
203
+
201
204
  if (!foundDate) {
202
- logger.log('INFO', `[getUserDataStatus] No computation found for user ${userCid} in last ${maxDaysBack} days`);
205
+ logger.log('INFO', `[getUserDataStatus] No computation found for user ${userCid} in last ${maxDaysBack} days - fallback window exhausted`);
203
206
  }
204
207
 
205
208
  // For backward compatibility, keep portfolioAvailable and historyAvailable
@@ -212,6 +215,7 @@ async function getUserDataStatus(req, res, dependencies, config) {
212
215
  computationDate: computationDate, // The actual date where computation was found
213
216
  isComputationFallback: isComputationFallback, // True if using T-1 or older date
214
217
  requestedDate: today, // What date was requested (today)
218
+ fallbackWindowExhausted: fallbackWindowExhausted, // True if checked all dates in fallback window and found nothing
215
219
  userCid: String(userCid),
216
220
  effectiveCid: String(effectiveCid)
217
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.576",
3
+ "version": "1.0.577",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [