Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Fixed edge-case where onboarding_user_client.user.email is nil, b…
Browse files Browse the repository at this point in the history
…ecause their primary email is private.
  • Loading branch information
armcburney committed Apr 14, 2018
1 parent b93ee4b commit 3db4f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def self.ci_user
# @return [GitHubProviderCredential]
def self.provider_credential
@_provider_credential ||= GitHubProviderCredential.new(
email: onboarding_user_client.user.email,
email: onboarding_user_client.emails.find(&:primary).email,
api_token: FastlaneCI.env.initial_onboarding_user_api_token
)
end
Expand Down

0 comments on commit 3db4f04

Please sign in to comment.