Closed mulundapm closed 1 day ago
We will use this prompt to find the user ids that are relevant:
SELECT user_id, count(*) FROM users.media_progress p JOIN public.mediaitems m ON p.item_id = m.id
JOIN users.profiles pr ON p.profile_id = pr.id
JOIN users.users u ON pr.user_id = u.id
GROUP BY user_id
ORDER BY count(*) DESC
If we want to, we can in a later stage, automate this more, but for the task at hand it seems sufficient.
Fetch ids of users interested with shorts and put them into unleash