@adobe/spacecat-shared-data-access 1.61.11 → 1.61.12

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-v1.61.12](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.61.11...@adobe/spacecat-shared-data-access-v1.61.12) (2024-12-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * calling all wrong args ([#520](https://github.com/adobe/spacecat-shared/issues/520)) ([b727e50](https://github.com/adobe/spacecat-shared/commit/b727e50e8375c8b6a33bac101d0a2ecaf8fc8b7e))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v1.61.11](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.61.10...@adobe/spacecat-shared-data-access-v1.61.11) (2024-12-31)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "1.61.11",
3
+ "version": "1.61.12",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -26,7 +26,7 @@ import Site from './site.model.js';
26
26
  */
27
27
  class SiteCollection extends BaseCollection {
28
28
  async allSitesToAudit() {
29
- return (await this.all({ attributes: ['siteId'] })).map((site) => site.getId());
29
+ return (await this.all({}, { attributes: ['siteId'] })).map((site) => site.getId());
30
30
  }
31
31
 
32
32
  async allWithLatestAudit(auditType, order = 'asc', deliveryType = null) {
@@ -43,7 +43,7 @@ class SiteCollection extends BaseCollection {
43
43
 
44
44
  const [sites, latestAudits] = await Promise.all([
45
45
  sitesQuery,
46
- latestAuditCollection.all([auditType], { order }),
46
+ latestAuditCollection.all({ auditType }, { order }),
47
47
  ]);
48
48
 
49
49
  const sitesMap = new Map(sites.map((site) => [site.getId(), site]));