Add counter cache to collections (#37176)

This commit is contained in:
David Roetzel
2025-12-09 11:31:35 +01:00
committed by GitHub
parent 5347cabf3e
commit ea768c17db
7 changed files with 11 additions and 28 deletions

View File

@@ -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))