misspell fix

This commit is contained in:
Daniel Goc
2026-03-31 12:27:31 +02:00
parent 1fa6206b75
commit a3f01eca7c
3 changed files with 5 additions and 5 deletions

View File

@@ -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