1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-26 01:00:20 +02:00

filter blurbs before generating thumbnails

This commit is contained in:
zafer 2024-08-17 21:55:28 +03:00
parent 16891643cc
commit b52ac8eee9

View File

@ -13,6 +13,7 @@ defmodule Algora.Admin.GenerateBlurbThumbnails do
Repo.all(
from pr in ProductReview,
join: v in assoc(pr, :video),
where: is_nil(pr.thumbnail_url),
preload: [video: v]
)
end