Skip to content

Commit

Permalink
Fix RocketChat.models.Users.findOneByEmailAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloschmidt committed Sep 30, 2015
1 parent a6f104a commit 7f37669
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 7f37669

Please sign in to comment.