Restore ordering of results from the users#index API call

This commit is contained in:
Tom Hughes 2023-08-26 17:41:22 +01:00
parent 7297bdb72c
commit c7a31ebc5d

View file

@ -19,7 +19,7 @@ module Api
raise OSM::APIBadUserInput, "No users were given to search for" if ids.empty?
@users = User.visible.where(:id => ids).order(:id)
@users = User.visible.where(:id => ids).in_order_of(:id, ids)
# Render the result
respond_to do |format|