fix: exhaustive cleanup of usecases and compilation fixes
This commit is contained in:
parent
2fa557503d
commit
dbbab26f71
2 changed files with 0 additions and 7 deletions
|
|
@ -115,12 +115,6 @@ func (s *Service) SearchProducts(ctx context.Context, filter domain.ProductSearc
|
|||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -154,4 +154,3 @@ func NewService(
|
|||
func (s *Service) GetNotificationService() notifications.NotificationService {
|
||||
return s.notify
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue