@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.mjs CHANGED
@@ -8700,9 +8700,13 @@ function buildActorRegistrationData(actor) {
8700
8700
  };
8701
8701
  }
8702
8702
  function resolveSyncServiceName(task) {
8703
+ const ownerServiceName = typeof task?.ownerServiceName === "string" ? task.ownerServiceName.trim() : "";
8703
8704
  const taskServiceName = typeof task?.serviceName === "string" ? task.serviceName.trim() : "";
8704
- const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
8705
- return taskServiceName || registryServiceName || void 0;
8705
+ const registryServiceName = typeof ServiceRegistry.instance.serviceName === "string" ? ServiceRegistry.instance.serviceName.trim() : "";
8706
+ if (task?.isDeputy) {
8707
+ return ownerServiceName || registryServiceName || taskServiceName || void 0;
8708
+ }
8709
+ return ownerServiceName || taskServiceName || registryServiceName || void 0;
8706
8710
  }
8707
8711
  function isLocalOnlySyncIntent(intentName) {
8708
8712
  return intentName === META_ACTOR_SESSION_STATE_PERSIST_INTENT2;