bulltrackers-module 1.0.512 → 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.512",
3
+ "version": "1.0.513",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [