From: Richard Fairhurst Date: Wed, 3 Feb 2010 16:50:39 +0000 (+0000) Subject: force changeset id to be an int so we don't have a table scan X-Git-Tag: live~6369^2~6 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ce85092f57e985925876dea7a455ef5e897b8127?hp=279ab7f911439cd2cb185a5d89955d89687772cc force changeset id to be an int so we don't have a table scan --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 2aac00d5e..e3ee92ff0 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -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