@adobe/spacecat-shared-data-access 1.2.3 → 1.2.5
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 +14 -0
- package/package.json +1 -1
- package/src/dto/site.js +2 -2
- package/src/service/audits/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v1.2.5](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.2.4...@adobe/spacecat-shared-data-access-v1.2.5) (2023-12-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* no undefined for putItem ([#43](https://github.com/adobe-rnd/spacecat-shared/issues/43)) ([283f229](https://github.com/adobe-rnd/spacecat-shared/commit/283f2299956c53ea77206a973210c3ecc9475180))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v1.2.4](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.2.3...@adobe/spacecat-shared-data-access-v1.2.4) (2023-12-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* pass ascending param ([#42](https://github.com/adobe-rnd/spacecat-shared/issues/42)) ([930ae6b](https://github.com/adobe-rnd/spacecat-shared/commit/930ae6b09825cf37de90db0a4331eebe5f58a70e))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v1.2.3](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.2.2...@adobe/spacecat-shared-data-access-v1.2.3) (2023-12-10)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/dto/site.js
CHANGED
|
@@ -24,8 +24,8 @@ export const SiteDto = {
|
|
|
24
24
|
toDynamoItem: (site) => ({
|
|
25
25
|
id: site.getId(),
|
|
26
26
|
baseURL: site.getBaseURL(),
|
|
27
|
-
gitHubURL: site.getGitHubURL(),
|
|
28
|
-
imsOrgId: site.getImsOrgId(),
|
|
27
|
+
gitHubURL: site.getGitHubURL() || '',
|
|
28
|
+
imsOrgId: site.getImsOrgId() || '',
|
|
29
29
|
isLive: site.isLive(),
|
|
30
30
|
createdAt: site.getCreatedAt(),
|
|
31
31
|
updatedAt: site.getUpdatedAt(),
|
|
@@ -29,12 +29,13 @@ export const auditFunctions = (dynamoClient, config, log) => ({
|
|
|
29
29
|
auditType,
|
|
30
30
|
auditedAt,
|
|
31
31
|
),
|
|
32
|
-
getAuditsForSite: (siteId, auditType) => getAuditsForSite(
|
|
32
|
+
getAuditsForSite: (siteId, auditType, ascending) => getAuditsForSite(
|
|
33
33
|
dynamoClient,
|
|
34
34
|
config,
|
|
35
35
|
log,
|
|
36
36
|
siteId,
|
|
37
37
|
auditType,
|
|
38
|
+
ascending,
|
|
38
39
|
),
|
|
39
40
|
getLatestAudits: (auditType, ascending) => getLatestAudits(
|
|
40
41
|
dynamoClient,
|