Disallow changesets query with both time and order=oldest
This commit is contained in:
parent
b350c78bc8
commit
7bca06a3d3
1 changed files with 2 additions and 0 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue