We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f07f09 commit a968655Copy full SHA for a968655
1 file changed
bots/elasticsearch/util.py
@@ -160,7 +160,7 @@ def fetch_creativework(pks):
160
FROM share_agentrelation AS affiliation
161
JOIN share_agent AS affiliated_agent ON affiliation.related_id = affiliated_agent.id
162
WHERE affiliation.subject_id = agent.id AND affiliated_agent.type != 'share.person'
163
- ) AS affiliations ON TRUE
+ ) AS affiliations ON (agent.type = 'share.person')
164
LEFT JOIN LATERAL (
165
SELECT json_agg(json_strip_nulls(json_build_object(
166
'id', award.id
0 commit comments