Use leading periods on UserFormatter#find_by_external_uid

parent 4ff491a1
...@@ -44,8 +44,9 @@ module Gitlab ...@@ -44,8 +44,9 @@ module Gitlab
User.select(:id) User.select(:id)
.joins(:identities).where(identities[:provider].eq(:github) .joins(:identities).where(identities[:provider].eq(:github)
.and(identities[:extern_uid].eq(id))). .and(identities[:extern_uid].eq(id)))
first.try(:id) .first
.try(:id)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment