force changeset id to be an int so we don't have a table scan
This commit is contained in:
parent
279ab7f911
commit
ce85092f57
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ class AmfController < ApplicationController
|
||||||
|
|
||||||
# close previous changeset and add comment
|
# close previous changeset and add comment
|
||||||
if closeid
|
if closeid
|
||||||
cs = Changeset.find(closeid)
|
cs = Changeset.find(closeid.to_i)
|
||||||
cs.set_closed_time_now
|
cs.set_closed_time_now
|
||||||
if cs.user_id!=user.id
|
if cs.user_id!=user.id
|
||||||
raise OSM::APIUserChangesetMismatchError.new
|
raise OSM::APIUserChangesetMismatchError.new
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue