@adobe/spacecat-shared-data-access 2.13.0 → 2.13.1
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.13.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.13.0...@adobe/spacecat-shared-data-access-v2.13.1) (2025-03-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **data-access:** fetch all records on demand ([#660](https://github.com/adobe/spacecat-shared/issues/660)) ([16bbeb4](https://github.com/adobe/spacecat-shared/commit/16bbeb4767526c846800480f49e2f7d06912330f))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.13.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.12.0...@adobe/spacecat-shared-data-access-v2.13.0) (2025-03-07)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -253,11 +253,10 @@ class BaseCollection {
|
|
|
253
253
|
let allData = result.data;
|
|
254
254
|
|
|
255
255
|
// if the caller requests ALL pages and we're not using limit: 1,
|
|
256
|
-
// continue to fetch until there is no
|
|
256
|
+
// continue to fetch until there is no cursor.
|
|
257
257
|
if (options.fetchAllPages && options.limit !== 1) {
|
|
258
|
-
while (result.
|
|
259
|
-
|
|
260
|
-
queryOptions.ExclusiveStartKey = result.lastEvaluatedKey;
|
|
258
|
+
while (result.cursor) {
|
|
259
|
+
queryOptions.cursor = result.cursor;
|
|
261
260
|
// eslint-disable-next-line no-await-in-loop
|
|
262
261
|
result = await query.go(queryOptions);
|
|
263
262
|
allData = allData.concat(result.data);
|