@adobe/spacecat-shared-data-access 2.46.1 → 2.46.2
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.46.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.1...@adobe/spacecat-shared-data-access-v2.46.2) (2025-08-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [preflight] removing ref from externalOwnerId to find site for a branch-based preview URL ([#843](https://github.com/adobe/spacecat-shared/issues/843)) ([4f57fcf](https://github.com/adobe/spacecat-shared/commit/4f57fcf2f645279e423455dea60df37e116950b4))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.46.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.0...@adobe/spacecat-shared-data-access-v2.46.1) (2025-08-09)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -88,9 +88,8 @@ class SiteCollection extends BaseCollection {
|
|
|
88
88
|
throw new DataAccessError(`Invalid Helix preview URL: ${previewURL}`, this);
|
|
89
89
|
}
|
|
90
90
|
const [host] = hostname.split('.');
|
|
91
|
-
const [
|
|
92
|
-
|
|
93
|
-
return this.findByExternalOwnerIdAndExternalSiteId(externalOwnerId, site);
|
|
91
|
+
const [, site, owner] = host.split('--');
|
|
92
|
+
return this.findByExternalOwnerIdAndExternalSiteId(owner, site);
|
|
94
93
|
}
|
|
95
94
|
case Site.AUTHORING_TYPES.CS_CW:
|
|
96
95
|
case Site.AUTHORING_TYPES.CS: {
|
|
@@ -24,10 +24,10 @@ export const computeExternalIds = (attrs, authoringTypes) => {
|
|
|
24
24
|
|
|
25
25
|
if (hlxConfig && (authoringType === authoringTypes.DA)) {
|
|
26
26
|
const rso = hlxConfig.rso ?? {};
|
|
27
|
-
const {
|
|
27
|
+
const { owner, site } = rso;
|
|
28
28
|
|
|
29
29
|
return {
|
|
30
|
-
externalOwnerId:
|
|
30
|
+
externalOwnerId: owner || undefined,
|
|
31
31
|
externalSiteId: site || undefined,
|
|
32
32
|
};
|
|
33
33
|
}
|