Skip to content

Commit

Permalink
Remove siblingContractId from group join
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Sep 30, 2024
1 parent 5cd8d4b commit 08e7a3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/shared/src/supabase/search-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ export function getSearchContractSQL(args: {
select('data, importance_score, view_count'),
from('contracts'),
groupId && [
join(
`group_contracts gc on (gc.contract_id = contracts.id or gc.contract_id = contracts.data->>'siblingContractId')`
),
join(`group_contracts gc on gc.contract_id = contracts.id`),
where('gc.group_id = $1', [groupId]),
],
searchType === 'answer' &&
Expand Down

0 comments on commit 08e7a3c

Please sign in to comment.