This commit is contained in:
2026-08-17 21:20:45 +02:00
parent 321f11e817
commit 6fcdc74843
157 changed files with 2895 additions and 7544 deletions
+2 -2
View File
@@ -1265,7 +1265,7 @@ func (s *Service) GetProcessedProduct(ctx context.Context, companyID, id uuid.UU
item["content_language"] = primary
item["content_languages"] = company.LoadContentLanguages(ctx, s.Pool, companyID)
if loc, err := company.DecodeLocalizedContent(item["localized_content"]); err == nil {
item["localized_content"] = loc
item["localized_content"] = loc.Public()
}
return item, nil
}
@@ -1328,7 +1328,7 @@ func (s *Service) GetRawProduct(ctx context.Context, companyID, id uuid.UUID) (m
item["content_language"] = primary
item["content_languages"] = company.LoadContentLanguages(ctx, s.Pool, companyID)
if loc, err := company.DecodeLocalizedContent(item["localized_content"]); err == nil {
item["localized_content"] = loc
item["localized_content"] = loc.Public()
}
return item, nil
}