bulltrackers-module 1.0.254 → 1.0.255

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.
@@ -79,7 +79,8 @@ async function checkRootDataAvailability(dateStr, config, dependencies, earliest
79
79
 
80
80
  try {
81
81
  // 1. Try reading the Index
82
- const indexDoc = db.collection(INDEX_COLLECTION).doc(dateStr).get();
82
+ // FIX: Added 'await' here to resolve the Promise before checking .exists
83
+ const indexDoc = await db.collection(INDEX_COLLECTION).doc(dateStr).get();
83
84
 
84
85
  if (indexDoc.exists) {
85
86
  const data = indexDoc.data();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.254",
3
+ "version": "1.0.255",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [