mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
This commit is contained in:
commit
8d8db4e667
@ -847,7 +847,7 @@ console.log('next');
|
|||||||
function getUsername(userId) {
|
function getUsername(userId) {
|
||||||
return database.users.get({id: userId})
|
return database.users.get({id: userId})
|
||||||
.then(function(user) {
|
.then(function(user) {
|
||||||
return uesr.name;
|
return user.name;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user