mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 12:22:21 +00:00
commit
d9af38ddc3
@ -489,7 +489,7 @@ Promise.all(promises).then(function (posts) {
|
|||||||
```javascript
|
```javascript
|
||||||
const databasePromise = connectDatabase();
|
const databasePromise = connectDatabase();
|
||||||
|
|
||||||
const booksPromise = databaseProimse
|
const booksPromise = databasePromise
|
||||||
.then(findAllBooks);
|
.then(findAllBooks);
|
||||||
|
|
||||||
const userPromise = databasePromise
|
const userPromise = databasePromise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user