bulltrackers-module 1.0.687 → 1.0.688

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.
@@ -63,12 +63,15 @@ async function loadAlertTypesFromManifest(logger) {
63
63
  severity: metadata.alert.severity || 'medium',
64
64
  configKey: metadata.alert.configKey,
65
65
  isTest: metadata.isTest === true,
66
- enabled: true
66
+ enabled: true,
67
+ // [FIX] Extract dynamic alert configuration from metadata
68
+ isDynamic: metadata.alert.isDynamic || false,
69
+ dynamicConfig: metadata.alert.dynamicConfig || null
67
70
  };
68
71
 
69
72
  alertTypes.push(alertType);
70
73
 
71
- logger?.log('DEBUG', `[AlertManifestLoader] Loaded alert type: ${alertType.id} from ${metadata.name}`);
74
+ logger?.log('DEBUG', `[AlertManifestLoader] Loaded alert type: ${alertType.id} from ${metadata.name} (isDynamic: ${alertType.isDynamic})`);
72
75
  }
73
76
 
74
77
  logger?.log('INFO', `[AlertManifestLoader] Successfully loaded ${alertTypes.length} alert types from calculations`);
@@ -417,11 +417,6 @@ const manageUserWatchlist = async (db, userId, instruction, payload = {}) => {
417
417
  // 3. Calculate Deltas based on Instruction
418
418
  if (instruction === 'create') {
419
419
  addedItems = payload.items || [];
420
-
421
- // DEBUG: Log what we're receiving
422
- console.log('[manageUserWatchlist DEBUG] payload received:', JSON.stringify(payload));
423
- console.log('[manageUserWatchlist DEBUG] payload.type:', payload.type);
424
-
425
420
  // Create the User Document
426
421
  const newDocData = {
427
422
  ...payload,
@@ -432,11 +427,6 @@ const manageUserWatchlist = async (db, userId, instruction, payload = {}) => {
432
427
  copyCount: 0,
433
428
  isAutoGenerated: false
434
429
  };
435
-
436
- // DEBUG: Log what we're about to save
437
- console.log('[manageUserWatchlist DEBUG] newDocData to save:', JSON.stringify(newDocData));
438
- console.log('[manageUserWatchlist DEBUG] newDocData.type:', newDocData.type);
439
-
440
430
  batch.set(userDocRef, newDocData);
441
431
  }
442
432
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.687",
3
+ "version": "1.0.688",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [