fix: soft delete

This commit is contained in:
ferdiansyah783 2024-08-22 13:11:22 +07:00
parent cc56cdc99f
commit b0a0b793bd

View File

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