force changeset id to be an int so we don't have a table scan

This commit is contained in:
Richard Fairhurst 2010-02-03 16:50:39 +00:00
parent 279ab7f911
commit ce85092f57

View file

@ -187,7 +187,7 @@ class AmfController < ApplicationController
# close previous changeset and add comment
if closeid
cs = Changeset.find(closeid)
cs = Changeset.find(closeid.to_i)
cs.set_closed_time_now
if cs.user_id!=user.id
raise OSM::APIUserChangesetMismatchError.new