diff --git a/internal/repository/sites/sites.go b/internal/repository/sites/sites.go index aa60928..98218d0 100644 --- a/internal/repository/sites/sites.go +++ b/internal/repository/sites/sites.go @@ -272,7 +272,7 @@ func (r *SiteRepository) SearchSites(ctx context.Context, search *entity.Discove SELECT *, ROW_NUMBER() OVER (PARTITION BY site_id ORDER BY price ASC) AS rn FROM products ) p ON s.id = p.site_id AND p.rn = 1 - WHERE ` + conditions + ` + WHERE ` + conditions + ` and s.deleted_at IS NULL and s.status = 'Active' ORDER BY s.name LIMIT ? OFFSET ? `