fix: soft delete
This commit is contained in:
parent
cc56cdc99f
commit
b0a0b793bd
@ -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
|
SELECT *, ROW_NUMBER() OVER (PARTITION BY site_id ORDER BY price ASC) AS rn
|
||||||
FROM products
|
FROM products
|
||||||
) p ON s.id = p.site_id AND p.rn = 1
|
) 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
|
ORDER BY s.name
|
||||||
LIMIT ? OFFSET ?
|
LIMIT ? OFFSET ?
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user