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/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, 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/bo/src/components/admin/PageProducts.vue b/bo/src/components/admin/PageProducts.vue index 8d3c1af..450954a 100644 --- a/bo/src/components/admin/PageProducts.vue +++ b/bo/src/components/admin/PageProducts.vue @@ -1,70 +1,11 @@