fix: exhaustive cleanup of usecases and compilation fixes

This commit is contained in:
Tiago Ribeiro 2026-03-09 09:50:42 -03:00
parent 2fa557503d
commit dbbab26f71
2 changed files with 0 additions and 7 deletions

View file

@ -115,12 +115,6 @@ func (s *Service) SearchProducts(ctx context.Context, filter domain.ProductSearc
return nil, err return nil, err
} }
// Adjust displayed stock by subtracting reservations
// In production, the Repo query itself would handle this for better performance
// for i := range products {
// // This is a simplified adjustment.
// }
return &domain.ProductSearchPage{Products: products, Total: total, Page: page, PageSize: pageSize}, nil return &domain.ProductSearchPage{Products: products, Total: total, Page: page, PageSize: pageSize}, nil
} }

View file

@ -154,4 +154,3 @@ func NewService(
func (s *Service) GetNotificationService() notifications.NotificationService { func (s *Service) GetNotificationService() notifications.NotificationService {
return s.notify return s.notify
} }