@adobe/spacecat-shared-data-access 2.73.0 → 2.73.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.73.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.73.0...@adobe/spacecat-shared-data-access-v2.73.1) (2025-10-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * maxScrapeAge zero handling ([#1024](https://github.com/adobe/spacecat-shared/issues/1024)) ([4aa087b](https://github.com/adobe/spacecat-shared/commit/4aa087b9af57f70f60ca38dc4d843929b7f4cc8f))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v2.73.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.72.1...@adobe/spacecat-shared-data-access-v2.73.0) (2025-10-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.73.0",
3
+ "version": "2.73.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,7 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { isArray, isObject, isBoolean } from '@adobe/spacecat-shared-utils';
13
+ import {
14
+ isArray,
15
+ isObject,
16
+ isBoolean,
17
+ isNumber,
18
+ } from '@adobe/spacecat-shared-utils';
14
19
 
15
20
  import { ValidationError } from '../../errors/index.js';
16
21
  import BaseModel from '../base/base.model.js';
@@ -179,7 +184,7 @@ class Audit extends BaseModel {
179
184
  urls: stepResult.urls.map((urlObj) => urlObj.url),
180
185
  processingType: stepResult.processingType || 'default',
181
186
  options: stepResult.options || {},
182
- maxScrapeAge: stepResult.maxScrapeAge || 24,
187
+ maxScrapeAge: isNumber(stepResult.maxScrapeAge) ? stepResult.maxScrapeAge : 24,
183
188
  auditData: {
184
189
  siteId: stepResult.siteId,
185
190
  completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,