@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.
@@ -6137,9 +6137,13 @@ function buildActorRegistrationData(actor) {
6137
6137
  };
6138
6138
  }
6139
6139
  function resolveSyncServiceName(task) {
6140
+ const ownerServiceName = typeof task?.ownerServiceName === "string" ? task.ownerServiceName.trim() : "";
6140
6141
  const taskServiceName = typeof task?.serviceName === "string" ? task.serviceName.trim() : "";
6141
- const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
6142
- return taskServiceName || registryServiceName || void 0;
6142
+ const registryServiceName = typeof ServiceRegistry.instance.serviceName === "string" ? ServiceRegistry.instance.serviceName.trim() : "";
6143
+ if (task?.isDeputy) {
6144
+ return ownerServiceName || registryServiceName || taskServiceName || void 0;
6145
+ }
6146
+ return ownerServiceName || taskServiceName || registryServiceName || void 0;
6143
6147
  }
6144
6148
  function isLocalOnlySyncIntent(intentName) {
6145
6149
  return intentName === META_ACTOR_SESSION_STATE_PERSIST_INTENT2;