GetWatchedPage: Put filter scope on one line

This commit is contained in:
IRHM
2026-06-28 00:26:16 +01:00
committed by momi
parent 28a6d85672
commit dbfc354353
+1 -3
View File
@@ -101,9 +101,7 @@ func (s *Service) GetWatchedPage(
Preload("WatchedSeasons").
Preload("WatchedEpisodes").
// Apply filters first.
Scopes(
watchedRefineFilter(wr),
).
Scopes(watchedRefineFilter(wr)).
// Then count results (after filter);
Count(&pRes.TotalResults).
// Now calculate pagination properties with a TotalResults