Skip to content
Snippets Groups Projects
Unverified Commit 1a04a51b authored by Airat Shigapov's avatar Airat Shigapov
Browse files

Fix events order in user contributions API

parent c99d12e5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment