Skip to content

Commit

Permalink
Merge pull request #926 from RocketChat/emails-not-sent
Browse files Browse the repository at this point in the history
Fix #911 where emails not sent.
  • Loading branch information
rodrigok committed Sep 30, 2015
2 parents d5b929f + aa1260c commit 6bca1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/models/Users.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RocketChat.models.Users = new class extends RocketChat.models._Base

findOneByEmailAddress: (emailAddress, options) ->
query =
'email.address': emailAddress
'emails.address': emailAddress

return @findOne query, options

Expand Down

0 comments on commit 6bca1ca

Please sign in to comment.