Story #109367694 - misplaced first

This commit is contained in:
Matt Farnsworth 2015-12-04 17:57:19 +02:00
parent 4bc31bb285
commit a2a4db0732

View file

@ -38,7 +38,7 @@ module Versions
user = AdminUser.find_by(id: $1) if str =~ /^(\d+)-AdminUser:/
unless user.present?
# on import we copied Registrar name, which may eql code
registrar = Registrar.find_by(name: str).first
registrar = Registrar.find_by(name: str)
# assume each registrar has only one user
user = registrar.api_users.first if registrar
end