1
0
Fork 0

issue #1510: Fix bug in the user app's storage in resolve function

This commit is contained in:
Jan Steemann 2015-09-28 12:54:04 +02:00
parent fce3088dcf
commit 7bd9f03cb1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const users = new Foxx.Repository(
function resolve(username) {
const user = users.firstExample({user: username});
if (!user.get('_key')) {
if (user === null || !user.get('_key')) {
return null;
}
return user;