@cadenza.io/service 2.17.32 → 2.17.33

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.
@@ -785,12 +785,18 @@ function normalizeServiceRegistryInsertResult(tableName, ctx, queryData, rawResu
785
785
  result.queryData = normalizedQueryData;
786
786
  if (tableName === "service") {
787
787
  const resolvedServiceName = String(
788
- result.__serviceName ?? resolvedData?.name ?? resolvedData?.service_name ?? ctx.__serviceName ?? ""
788
+ ctx.__serviceName ?? result.__serviceName ?? resolvedData?.name ?? resolvedData?.service_name ?? ""
789
789
  ).trim();
790
790
  if (resolvedServiceName) {
791
791
  result.__serviceName = resolvedServiceName;
792
792
  }
793
793
  }
794
+ const resolvedLocalServiceInstanceId = String(
795
+ ctx.__serviceInstanceId ?? resolvedData?.uuid ?? resolvedData?.service_instance_id ?? ""
796
+ ).trim();
797
+ if (resolvedLocalServiceInstanceId) {
798
+ result.__serviceInstanceId = resolvedLocalServiceInstanceId;
799
+ }
794
800
  if (tableName === "service_instance" || tableName === "service_instance_transport") {
795
801
  const resolvedUuid = String(
796
802
  result.uuid ?? resolvedData?.uuid ?? ctx.__serviceInstanceId ?? ""