@adobe/spacecat-shared-data-access 2.40.1 → 2.40.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.40.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.40.1...@adobe/spacecat-shared-data-access-v2.40.2) (2025-07-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* SITES-33793 update updatedAt field in _saveMany method ([#860](https://github.com/adobe/spacecat-shared/issues/860)) ([5d6454b](https://github.com/adobe/spacecat-shared/commit/5d6454b7ef9eedee39c41eda56d72324bc472c09))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.40.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.40.0...@adobe/spacecat-shared-data-access-v2.40.1) (2025-07-27)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -508,6 +508,12 @@ class BaseCollection {
|
|
|
508
508
|
const updates = items.map((item) => item.record);
|
|
509
509
|
const response = await this.entity.put(updates).go();
|
|
510
510
|
|
|
511
|
+
const now = new Date().toISOString();
|
|
512
|
+
items.forEach((item) => {
|
|
513
|
+
const { record } = item;
|
|
514
|
+
record.updatedAt = now;
|
|
515
|
+
});
|
|
516
|
+
|
|
511
517
|
if (isNonEmptyArray(response.unprocessed)) {
|
|
512
518
|
this.log.error(`Failed to process all items in batch write for [${this.entityName}]: ${JSON.stringify(response.unprocessed)}`);
|
|
513
519
|
}
|