mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
fix finding user in message_gateway
This commit is contained in:
parent
590e91534e
commit
61123ffa42
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class MessageGateway < ActionMailer::Base
|
|||
|
||||
def get_user_from_env_setting
|
||||
Rails.logger.info "All received email goes to #{ENV['TRACKS_MAIL_RECEIVER']}"
|
||||
user = User.find_by_login(ENV['TRACKS_MAIL_RECEIVER'])
|
||||
user = User.find_by_login(ENV['TRACKS_MAIL_RECEIVER']).first
|
||||
Rails.logger.info "WARNING: Unknown user set for TRACKS_MAIL_RECEIVER (#{ENV['TRACKS_MAIL_RECEIVER']})" if user.nil?
|
||||
return user
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue