fix: fixed strapi service
This commit is contained in:
@@ -309,7 +309,7 @@ func (s *StrapiService) GetAllTags(ctx context.Context) ([]repo.Tag, error) {
|
|||||||
cached, err := s.cache.Get(ctx, key)
|
cached, err := s.cache.Get(ctx, key)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
var tags []repo.Tag
|
var tags []repo.Tag
|
||||||
if err := json.Unmarshal([]byte(cached), tags); err == nil {
|
if err := json.Unmarshal([]byte(cached), &tags); err == nil {
|
||||||
return tags, nil
|
return tags, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user