From 1a5f0671daae38e76388a161e5986da34e7202ba Mon Sep 17 00:00:00 2001 From: Cristian Vidmar Date: Thu, 8 Jul 2021 12:09:22 +0200 Subject: [PATCH] fix hardcoded locales in cacheGcAssetByID() --- erm/templates/contentful_vo_lib.gotmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erm/templates/contentful_vo_lib.gotmpl b/erm/templates/contentful_vo_lib.gotmpl index 350acc0..357324b 100644 --- a/erm/templates/contentful_vo_lib.gotmpl +++ b/erm/templates/contentful_vo_lib.gotmpl @@ -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 }