From ec8320bc422f50689952d6fa1e91af0183897092 Mon Sep 17 00:00:00 2001 From: Crumb Owl Date: Thu, 26 Jun 2025 22:43:35 +0000 Subject: [PATCH] ProductBarcode: update UPCItemDB parsing - JSON response seems to have changed --- backend/app/api/handlers/v1/v1_ctrl_qrcode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/api/handlers/v1/v1_ctrl_qrcode.go b/backend/app/api/handlers/v1/v1_ctrl_qrcode.go index 24cbe81a..ec752b7b 100644 --- a/backend/app/api/handlers/v1/v1_ctrl_qrcode.go +++ b/backend/app/api/handlers/v1/v1_ctrl_qrcode.go @@ -124,7 +124,6 @@ type UPCITEMDBResponse struct { Dimension string `json:"dimension"` Weight string `json:"weight"` Category string `json:"category"` - Currency string `json:"currency"` LowestRecordedPrice float64 `json:"lowest_recorded_price"` HighestRecordedPrice float64 `json:"highest_recorded_price"` Images []string `json:"images"` @@ -141,6 +140,8 @@ type UPCITEMDBResponse struct { Link string `json:"link"` UpdatedT int `json:"updated_t"` } `json:"offers"` + Asin string `json:"asin"` + Elid string `json:"elid"` } `json:"items"` }