fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user