Disallow changesets query with both time and order=oldest

This commit is contained in:
Anton Khorev 2023-08-15 18:40:49 +03:00
parent b350c78bc8
commit 7bca06a3d3

View file

@ -157,6 +157,8 @@ module Api
##
# query changesets by bounding box, time, user or open/closed status.
def query
raise OSM::APIBadUserInput, "cannot use order=oldest with time" if params[:time] && params[:order] == "oldest"
# find any bounding box
bbox = BoundingBox.from_bbox_params(params) if params["bbox"]