From a3f01eca7c5a54a3120804e28ba0a13954da483e Mon Sep 17 00:00:00 2001 From: Daniel Goc Date: Tue, 31 Mar 2026 12:27:31 +0200 Subject: [PATCH 1/2] misspell fix --- app/model/productDescription.go | 2 +- app/repos/productDescriptionRepo/productDescriptionRepo.go | 4 ++-- bruno/b2b-daniel/get-product-description.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/model/productDescription.go b/app/model/productDescription.go index 3e7d5c1..4781be5 100644 --- a/app/model/productDescription.go +++ b/app/model/productDescription.go @@ -20,7 +20,7 @@ type ProductDescription struct { DeliveryOutStock string `gorm:"column:delivery_out_stock;type:varchar(255)" json:"delivery_out_stock" form:"delivery_out_stock"` Usage string `gorm:"column:usage;type:text" json:"usage" form:"usage"` - ExistsInDatabse bool `gorm:"-" json:"exists_in_database"` + ExistsInDatabase bool `gorm:"-" json:"exists_in_database"` } type ProductRow struct { diff --git a/app/repos/productDescriptionRepo/productDescriptionRepo.go b/app/repos/productDescriptionRepo/productDescriptionRepo.go index d569a75..1b0faf8 100644 --- a/app/repos/productDescriptionRepo/productDescriptionRepo.go +++ b/app/repos/productDescriptionRepo/productDescriptionRepo.go @@ -40,11 +40,11 @@ func (r *ProductDescriptionRepo) GetProductDescription(productID uint, productid if errors.Is(err, gorm.ErrRecordNotFound) { // handle "not found" case only - ProductDescription.ExistsInDatabse = false + ProductDescription.ExistsInDatabase = false } else if err != nil { return nil, fmt.Errorf("database error: %w", err) } else { - ProductDescription.ExistsInDatabse = true + ProductDescription.ExistsInDatabase = true } return &ProductDescription, nil diff --git a/bruno/b2b-daniel/get-product-description.yml b/bruno/b2b-daniel/get-product-description.yml index 326b790..63a7447 100644 --- a/bruno/b2b-daniel/get-product-description.yml +++ b/bruno/b2b-daniel/get-product-description.yml @@ -5,13 +5,13 @@ info: http: method: GET - url: http://localhost:3000/api/v1/restricted/product-translation/get-product-description?productID=51&productLangID=4 + url: http://localhost:3000/api/v1/restricted/product-translation/get-product-description?productID=51&productLangID=1 params: - name: productID value: "51" type: query - name: productLangID - value: "4" + value: "1" type: query auth: inherit From 04e2549a668eb55704a2400e8cc8705b1ffa459b Mon Sep 17 00:00:00 2001 From: Daniel Goc Date: Tue, 31 Mar 2026 14:30:47 +0200 Subject: [PATCH 2/2] missing / in ImageLink --- app/repos/listRepo/listRepo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/repos/listRepo/listRepo.go b/app/repos/listRepo/listRepo.go index c84beba..d31ebda 100644 --- a/app/repos/listRepo/listRepo.go +++ b/app/repos/listRepo/listRepo.go @@ -32,7 +32,7 @@ func (repo *ListRepo) ListProducts(id_lang uint, p find.Paging, filt *filters.Fi ps.id_product AS product_id, pl.name AS name, pl.link_rewrite AS link_rewrite, - CONCAT(?, ims.id_image, '-small_default/', pl.link_rewrite, '.webp') AS image_link, + CONCAT(?, '/', ims.id_image, '-small_default/', pl.link_rewrite, '.webp') AS image_link, cl.name AS category_name, p.reference AS reference, COALESCE(v.variants_number, 0) AS variants_number,