mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-23 11:17:54 +08:00
fixbug #25
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user