@cadenza.io/service 2.3.14 → 2.3.15

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.
package/dist/index.mjs CHANGED
@@ -503,15 +503,20 @@ var ServiceRegistry = class _ServiceRegistry {
503
503
  const mergeSyncDataTask = CadenzaService.createUniqueMetaTask(
504
504
  "Merge sync data",
505
505
  (ctx) => {
506
- let joinedContext = {};
507
- ctx.joinedContexts.forEach((ctx2) => {
508
- joinedContext = { ...joinedContext, ...ctx2 };
509
- });
510
- console.log(
511
- "merging contexts of full sync...",
512
- joinedContext.keys().join(", ")
513
- );
514
- return joinedContext;
506
+ try {
507
+ let joinedContext = {};
508
+ ctx.joinedContexts.forEach((ctx2) => {
509
+ joinedContext = { ...joinedContext, ...ctx2 };
510
+ });
511
+ console.log(
512
+ "merging contexts of full sync...",
513
+ joinedContext.keys().join(", ")
514
+ );
515
+ return joinedContext;
516
+ } catch (e) {
517
+ console.log("Error", e.message, ctx);
518
+ return false;
519
+ }
515
520
  }
516
521
  ).emits("meta.service_registry.initial_sync_complete").then(this.handleGlobalSignalRegistrationTask);
517
522
  this.fullSyncTask = CadenzaService.createMetaRoutine("Full sync", [