Add counter cache to collections (#37176)
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user