bulltrackers-module 1.0.643 → 1.0.644

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.
@@ -5,6 +5,7 @@
5
5
  * NEW: Added 'getAvailabilityWindow' for efficient batch availability lookups using range queries.
6
6
  */
7
7
  const { normalizeName } = require('../utils/utils');
8
+ const { FieldPath } = require('@google-cloud/firestore');
8
9
 
9
10
  const INDEX_COLLECTION = process.env.ROOT_DATA_AVAILABILITY_COLLECTION || 'system_root_data_index';
10
11
 
@@ -329,8 +330,8 @@ async function getAvailabilityWindow(deps, startDateStr, endDateStr) {
329
330
 
330
331
  // Perform Range Query on Document ID (Date String)
331
332
  const snapshot = await db.collection(INDEX_COLLECTION)
332
- .where(db.FieldPath.documentId(), '>=', startDateStr)
333
- .where(db.FieldPath.documentId(), '<=', endDateStr)
333
+ .where(FieldPath.documentId(), '>=', startDateStr)
334
+ .where(FieldPath.documentId(), '<=', endDateStr)
334
335
  .get();
335
336
 
336
337
  const availabilityMap = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.643",
3
+ "version": "1.0.644",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [