Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit beb1d5c

Browse files
author
tkostuch
committed
Merge branch 'develop' of github.com:DivanteLtd/vue-storefront-api into bugfix/477
2 parents 66df994 + 6487a8b commit beb1d5c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Fixed
1313

14+
- Fix default value for `maxAgeForResponse` - @lauraseidler (#485)
1415
- Use productEquals to compare products in o2m - @gibkigonzo (#477)
1516

1617
## [1.12.1] - 2020.06.22

src/api/attribute/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function setAttributeInCache (attributeList, config) {
7676
* @param attribute - attribute object
7777
* @param optionsIds - list of only needed options ids
7878
*/
79-
function clearAttributeOpitons (attribute, optionsIds: number[]) {
79+
function clearAttributeOptions (attribute, optionsIds: number[]) {
8080
const stringOptionsIds = optionsIds.map(String)
8181
return {
8282
...attribute,
@@ -102,7 +102,7 @@ async function list (attributesParam: AttributeListParam, config, indexName: str
102102
attributeCodes.splice(index, 1)
103103

104104
// clear unused options
105-
return clearAttributeOpitons(cachedAttribute, attributeOptionsIds)
105+
return clearAttributeOptions(cachedAttribute, attributeOptionsIds)
106106
}
107107
})
108108
// remove empty results from cache.get
@@ -134,7 +134,7 @@ async function list (attributesParam: AttributeListParam, config, indexName: str
134134
const attributeOptionsIds = attributesParam[fetchedAttribute.attribute_code]
135135

136136
// clear unused options
137-
return clearAttributeOpitons(fetchedAttribute, attributeOptionsIds)
137+
return clearAttributeOptions(fetchedAttribute, attributeOptionsIds)
138138
})
139139
]
140140

src/image/action/local/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class LocalImageAction extends ImageAction {
1212
}
1313

1414
public get maxAgeForResponse () {
15-
return 31557600000
15+
return 365.25 * 86400
1616
}
1717

1818
public getImageURL (): string {

0 commit comments

Comments
 (0)