Use where instead of find to prevent 404

This commit is contained in:
ENT8R 2023-08-26 00:31:18 +02:00
parent 6759130cb3
commit b9c85c2697
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -1,4 +1,4 @@
xml.instruct! :xml, :version => "1.0"
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
osm << render(@users)
osm << (render(@users) || "")
end