@cadenza.io/service 2.17.66 → 2.17.67

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 CHANGED
@@ -8749,9 +8749,13 @@ function buildActorRegistrationData(actor) {
8749
8749
  };
8750
8750
  }
8751
8751
  function resolveSyncServiceName(task) {
8752
+ const ownerServiceName = typeof task?.ownerServiceName === "string" ? task.ownerServiceName.trim() : "";
8752
8753
  const taskServiceName = typeof task?.serviceName === "string" ? task.serviceName.trim() : "";
8753
- const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
8754
- return taskServiceName || registryServiceName || void 0;
8754
+ const registryServiceName = typeof ServiceRegistry.instance.serviceName === "string" ? ServiceRegistry.instance.serviceName.trim() : "";
8755
+ if (task?.isDeputy) {
8756
+ return ownerServiceName || registryServiceName || taskServiceName || void 0;
8757
+ }
8758
+ return ownerServiceName || taskServiceName || registryServiceName || void 0;
8755
8759
  }
8756
8760
  function isLocalOnlySyncIntent(intentName) {
8757
8761
  return intentName === import_core4.META_ACTOR_SESSION_STATE_PERSIST_INTENT;