mirror of https://gitee.com/bigwinds/arangodb
issue #1510: Fix bug in the user app's storage in resolve function
This commit is contained in:
parent
fce3088dcf
commit
7bd9f03cb1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue