Skip to content

Commit

Permalink
fix hardcoded locales in cacheGcAssetByID()
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Vidmar committed Jul 8, 2021
1 parent 54991f3 commit 1a5f067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erm/templates/contentful_vo_lib.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func (cc *ContentfulClient) cacheGcAssetByID(ctx context.Context, id string) err
if err != nil {
return err
}
for _, loc := range []Locale{SpaceLocaleGerman, SpaceLocaleFrench} {
for _, loc := range []Locale{ {{ range $index , $locale := $locales }}SpaceLocale{{ onlyLetters $locale.Name }},{{end}} } {
if _, ok := asset.Fields.File[string(loc)]; ok {
asset.Fields.File[string(loc)].URL = "https:" + asset.Fields.File[string(loc)].URL
}
Expand Down

0 comments on commit 1a5f067

Please sign in to comment.