@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.
@@ -6186,9 +6186,13 @@ function buildActorRegistrationData(actor) {
6186
6186
  };
6187
6187
  }
6188
6188
  function resolveSyncServiceName(task) {
6189
+ const ownerServiceName = typeof task?.ownerServiceName === "string" ? task.ownerServiceName.trim() : "";
6189
6190
  const taskServiceName = typeof task?.serviceName === "string" ? task.serviceName.trim() : "";
6190
- const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
6191
- return taskServiceName || registryServiceName || void 0;
6191
+ const registryServiceName = typeof ServiceRegistry.instance.serviceName === "string" ? ServiceRegistry.instance.serviceName.trim() : "";
6192
+ if (task?.isDeputy) {
6193
+ return ownerServiceName || registryServiceName || taskServiceName || void 0;
6194
+ }
6195
+ return ownerServiceName || taskServiceName || registryServiceName || void 0;
6192
6196
  }
6193
6197
  function isLocalOnlySyncIntent(intentName) {
6194
6198
  return intentName === import_core4.META_ACTOR_SESSION_STATE_PERSIST_INTENT;