mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
fix(housekeeping): add where clause to check episode_id is not null on reset comments count
This commit is contained in:
parent
de8b84c874
commit
119742cdbb
1 changed files with 1 additions and 0 deletions
|
|
@ -386,6 +386,7 @@ class EpisodeModel extends UuidModel
|
|||
->select('fediverse_posts.episode_id as episode_id, COUNT(*) as `comments_count`')
|
||||
->join('fediverse_posts as fp', 'fediverse_posts.id = fp.in_reply_to_id')
|
||||
->where('fediverse_posts.in_reply_to_id', null)
|
||||
->where('fediverse_posts.episode_id IS NOT', null)
|
||||
->groupBy('fediverse_posts.episode_id')
|
||||
->getCompiledSelect();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue