@cadenza.io/service 2.3.14 → 2.3.16
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.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -551,15 +551,17 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
551
551
|
const mergeSyncDataTask = CadenzaService.createUniqueMetaTask(
|
|
552
552
|
"Merge sync data",
|
|
553
553
|
(ctx) => {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
"merging contexts of full sync...",
|
|
560
|
-
joinedContext
|
|
561
|
-
)
|
|
562
|
-
|
|
554
|
+
try {
|
|
555
|
+
let joinedContext = {};
|
|
556
|
+
ctx.joinedContexts.forEach((ctx2) => {
|
|
557
|
+
joinedContext = { ...joinedContext, ...ctx2 };
|
|
558
|
+
});
|
|
559
|
+
console.log("merging contexts of full sync...", joinedContext);
|
|
560
|
+
return joinedContext;
|
|
561
|
+
} catch (e) {
|
|
562
|
+
console.log("Error", e.message, ctx);
|
|
563
|
+
return false;
|
|
564
|
+
}
|
|
563
565
|
}
|
|
564
566
|
).emits("meta.service_registry.initial_sync_complete").then(this.handleGlobalSignalRegistrationTask);
|
|
565
567
|
this.fullSyncTask = CadenzaService.createMetaRoutine("Full sync", [
|