This commit is contained in:
jysperm
2014-03-23 21:31:31 +08:00
parent e3bd638385
commit 4653157946

View File

@@ -88,7 +88,7 @@ module.exports = class Account extends Model
, (result) ->
callback result
@byUsernameOrEmail: (username) ->
@byUsernameOrEmail: (username, callback) ->
Account.byUsername username, (account) ->
if account
return callback account