Skip to content

Commit fd80ad3

Browse files
committed
Merge branch 'master' into 8.1
2 parents 3393c96 + 1eaa2d6 commit fd80ad3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Below are the [semver](http://semver.org/) ranges representing which versions of
2020
| :------------: | :-------------------------------------: |
2121
| `7.x` | `^7.4.0 \| ^8.0.0` |
2222
| `6.x` | `^6.5.0 \| ^7.0.0 \| ^8.0.0` |
23-
| `5.x` | `^5.13.0` | `^6.0.0 \| ^7.0.0 \| ^8.0.0`|
23+
| `5.x` | `^5.13.0` \| `^6.0.0 \| ^7.0.0 \| ^8.0.0`|
2424
| `4.4.x` | `^5.10.0 \| ^6.0.0 \| ^7.0.0 \| ^8.0.0` |
2525
| `4.2.x` | `^5.7.0 \| ^6.0.0 \| ^7.0.0 \| ^8.0.0` |
2626
| `4.0.x` | `^5.2.0 \| ^6.0.0 \| ^7.0.0 \| ^8.0.0` |

lib/model.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,9 +1760,7 @@ Model.listIndexes = async function listIndexes() {
17601760
*
17611761
* #### Example:
17621762
*
1763-
* Event.ensureIndexes(function (err) {
1764-
* if (err) return handleError(err);
1765-
* });
1763+
* await Event.ensureIndexes();
17661764
*
17671765
* After completion, an `index` event is emitted on this `Model` passing an error if one occurred.
17681766
*
@@ -1773,7 +1771,7 @@ Model.listIndexes = async function listIndexes() {
17731771
*
17741772
* Event.on('index', function (err) {
17751773
* if (err) console.error(err); // error occurred during index creation
1776-
* })
1774+
* });
17771775
*
17781776
* _NOTE: It is not recommended that you run this in production. Index creation may impact database performance depending on your load. Use with caution._
17791777
*

0 commit comments

Comments
 (0)