Add counter cache to collections (#37176)

This commit is contained in:
David Roetzel authored and GitHub committed 2025-12-09 10:31:35 +00:00
1 parent 5347cabf3e
commit ea768c17db
7 files changed
+11 -28

No files matched your search

@@ -71,7 +71,6 @@ class Api::V1Alpha::CollectionsController < Api::BaseController
def set_collections
@collections = @account.collections
.with_tag
.with_item_count
.order(created_at: :desc)
.offset(offset_param)
.limit(limit_param(DEFAULT_COLLECTIONS_LIMIT))