feat: site stock

This commit is contained in:
fernanda-one
2024-08-24 01:49:14 +07:00
parent 56f7baf21d
commit 57f019b1e9
5 changed files with 5 additions and 2 deletions
-2
View File
@@ -2,7 +2,6 @@ package product
import (
"context"
"fmt"
"furtuna-be/internal/common/logger"
"furtuna-be/internal/common/mycontext"
"furtuna-be/internal/entity"
@@ -63,7 +62,6 @@ func (s *ProductService) GetByID(ctx context.Context, id int64) (*entity.Product
func (s *ProductService) GetAll(ctx context.Context, search entity.ProductSearch) ([]*entity.Product, int, error) {
products, total, err := s.repo.GetAllProducts(ctx, search)
fmt.Println(products, "tes")
if err != nil {
logger.ContextLogger(ctx).Error("error when get all products", zap.Error(err))
return nil, 0, err