Update ordering to use `id` from body of document instead of deprecated `_id` (#26659)

th-downstream
jsgoldstein 1 year ago committed by GitHub
parent c0d98abf00
commit 5a74675fce

@ -27,7 +27,7 @@ class StatusesSearchService < BaseService
)
)
results = definition.collapse(field: :id).order(_id: { order: :desc }).limit(@limit).offset(@offset).objects.compact
results = definition.collapse(field: :id).order(id: { order: :desc }).limit(@limit).offset(@offset).objects.compact
account_ids = results.map(&:account_id)
account_domains = results.map(&:account_domain)
preloaded_relations = @account.relations_map(account_ids, account_domains)

Loading…
Cancel
Save