This commit is contained in:
greeneclipse committed 2026-10-16 00:34:06 +02:00
1 parent 6586722652
commit 1e7c7bbfbb
65 files changed
+1345 -640

No files matched your search

+6 -6
View File
@@ -1159,7 +1159,7 @@ func (s *Service) ListProcessedProducts(ctx context.Context, companyID uuid.UUID
p.category,
cat.name AS category_name,
COALESCE(cat.unique_id, NULLIF(BTRIM(p.category), '')) AS category_unique_id,
p.status, p.raw_product_id, COALESCE(p.feed_id, r.feed_id) AS feed_id, r.gtin,
p.status, p.processing_origin, p.raw_product_id, COALESCE(p.feed_id, r.feed_id) AS feed_id, r.gtin,
f.name AS feed_name,
f.last_synced_at AS feed_last_synced_at,
r.updated_at AS raw_updated_at,
@@ -1184,7 +1184,7 @@ func (s *Service) ListProcessedProducts(ctx context.Context, companyID uuid.UUID
defer rows.Close()
items, err := scanMaps(rows, []string{
"id", "product_id", "name", "original_name", "processed_name", "category", "category_name", "category_unique_id",
"status", "raw_product_id", "feed_id", "gtin",
"status", "processing_origin", "raw_product_id", "feed_id", "gtin",
"feed_name", "feed_last_synced_at", "raw_updated_at",
"has_name", "has_processed_name", "has_description", "has_processed_description", "has_category", "has_attributes", "has_processed_attributes",
"has_eprel",
@@ -1250,7 +1250,7 @@ func (s *Service) ListProcessedProductsDetailed(ctx context.Context, companyID u
cat.name AS category_name,
COALESCE(cat.unique_id, NULLIF(BTRIM(p.category), '')) AS category_unique_id,
`+processedFeedCategorySQL+` AS feed_category,
p.status, p.raw_product_id, p.feed_id, r.gtin,
p.status, p.processing_origin, p.raw_product_id, p.feed_id, r.gtin,
`+processedPreferredDescriptionSQL+` AS description,
`+processedOriginalDescriptionSQL+` AS original_description,
p.processed_name, p.processed_description,
@@ -1268,7 +1268,7 @@ func (s *Service) ListProcessedProductsDetailed(ctx context.Context, companyID u
items, err := scanMaps(rows, []string{
"id", "product_id", "name", "original_name", "category", "category_name", "category_unique_id",
"feed_category",
"status", "raw_product_id", "feed_id", "gtin",
"status", "processing_origin", "raw_product_id", "feed_id", "gtin",
"description", "original_description", "processed_name", "processed_description",
"meta_title", "meta_description",
"attributes", "processed_attributes", "mapped_data",
@@ -1299,7 +1299,7 @@ func (s *Service) GetProcessedProduct(ctx context.Context, companyID, id uuid.UU
p.processed_name, p.processed_description,
COALESCE(p.meta_title, '') AS meta_title,
COALESCE(p.meta_description, '') AS meta_description,
p.status, p.attributes, p.processed_attributes, r.gtin, r.mapped_data,
p.status, p.processing_origin, p.attributes, p.processed_attributes, r.gtin, r.mapped_data,
COALESCE(p.feed_id, r.feed_id) AS feed_id,
f.name AS feed_name,
f.last_synced_at AS feed_last_synced_at,
@@ -1320,7 +1320,7 @@ func (s *Service) GetProcessedProduct(ctx context.Context, companyID, id uuid.UU
"feed_category",
"description", "original_description", "processed_name", "processed_description",
"meta_title", "meta_description",
"status", "attributes", "processed_attributes", "gtin", "mapped_data",
"status", "processing_origin", "attributes", "processed_attributes", "gtin", "mapped_data",
"feed_id", "feed_name", "feed_last_synced_at", "raw_updated_at",
"has_processed_name", "has_processed_description", "has_attributes", "has_processed_attributes",
"has_eprel",