Commit 1a04a51b authored by Airat Shigapov's avatar Airat Shigapov

Fix events order in user contributions API

parent c99d12e5
......@@ -333,10 +333,11 @@ module API
user = User.find_by(id: declared(params).id)
not_found!('User') unless user
events = user.recent_events.
events = user.events.
merge(ProjectsFinder.new.execute(current_user)).
references(:project).
with_associations.
recent.
page(params[:page])
present paginate(events), with: Entities::Event
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment