bulltrackers-module 1.0.511 → 1.0.513
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.
|
@@ -232,10 +232,10 @@ async function handleComputationTask(message, config, dependencies) {
|
|
|
232
232
|
await db.doc(ledgerPath).update({ status: 'COMPLETED', completedAt: new Date() });
|
|
233
233
|
await recordRunAttempt(db, { date, computation, pass }, 'SUCCESS', null, metrics, triggerReason, resourceTier);
|
|
234
234
|
|
|
235
|
+
const { notifyComputationComplete, getComputationDisplayName } = require('../../generic-api/user-api/helpers/notifications/notification_helpers');
|
|
235
236
|
// Send notification if this was an on-demand computation
|
|
236
237
|
if (metadata?.onDemand && metadata?.requestId && metadata?.requestingUserCid) {
|
|
237
238
|
try {
|
|
238
|
-
const { notifyComputationComplete, getComputationDisplayName } = require('../../generic-api/user-api/helpers/notification_helpers');
|
|
239
239
|
await notifyComputationComplete(
|
|
240
240
|
dependencies.db,
|
|
241
241
|
dependencies.logger,
|
|
@@ -283,7 +283,6 @@ async function handleComputationTask(message, config, dependencies) {
|
|
|
283
283
|
// Send error notification if this was an on-demand computation
|
|
284
284
|
if (metadata?.onDemand && metadata?.requestId && metadata?.requestingUserCid) {
|
|
285
285
|
try {
|
|
286
|
-
const { notifyComputationComplete, getComputationDisplayName } = require('../../generic-api/user-api/helpers/notification_helpers');
|
|
287
286
|
await notifyComputationComplete(
|
|
288
287
|
db,
|
|
289
288
|
dependencies.logger,
|
|
@@ -535,7 +535,7 @@ async function handleOnDemandUserUpdate(taskData, config, dependencies) {
|
|
|
535
535
|
const { logger, proxyManager, batchManager, headerManager, db, collectionRegistry } = dependencies;
|
|
536
536
|
|
|
537
537
|
// Import notification helper once at the top
|
|
538
|
-
const { notifyTaskEngineComplete } = require('../../generic-api/user-api/helpers/notification_helpers');
|
|
538
|
+
const { notifyTaskEngineComplete } = require('../../generic-api/user-api/helpers/notifications/notification_helpers');
|
|
539
539
|
|
|
540
540
|
// Validate and set API URLs with defaults and fallbacks
|
|
541
541
|
const ETORO_API_PORTFOLIO_URL = config.ETORO_API_PORTFOLIO_URL || process.env.ETORO_API_PORTFOLIO_URL || 'https://www.etoro.com/sapi/portfolios/portfolio';
|