Skip to content

Commit

Permalink
Merge branch 'master' into 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 15, 2024
2 parents 3393c96 + 1eaa2d6 commit fd80ad3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Below are the [semver](http://semver.org/) ranges representing which versions of
| :------------: | :-------------------------------------: |
| `7.x` | `^7.4.0 \| ^8.0.0` |
| `6.x` | `^6.5.0 \| ^7.0.0 \| ^8.0.0` |
| `5.x` | `^5.13.0` | `^6.0.0 \| ^7.0.0 \| ^8.0.0`|
| `5.x` | `^5.13.0` \| `^6.0.0 \| ^7.0.0 \| ^8.0.0`|
| `4.4.x` | `^5.10.0 \| ^6.0.0 \| ^7.0.0 \| ^8.0.0` |
| `4.2.x` | `^5.7.0 \| ^6.0.0 \| ^7.0.0 \| ^8.0.0` |
| `4.0.x` | `^5.2.0 \| ^6.0.0 \| ^7.0.0 \| ^8.0.0` |
Expand Down
6 changes: 2 additions & 4 deletions lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,9 +1760,7 @@ Model.listIndexes = async function listIndexes() {
*
* #### Example:
*
* Event.ensureIndexes(function (err) {
* if (err) return handleError(err);
* });
* await Event.ensureIndexes();
*
* After completion, an `index` event is emitted on this `Model` passing an error if one occurred.
*
Expand All @@ -1773,7 +1771,7 @@ Model.listIndexes = async function listIndexes() {
*
* Event.on('index', function (err) {
* if (err) console.error(err); // error occurred during index creation
* })
* });
*
* _NOTE: It is not recommended that you run this in production. Index creation may impact database performance depending on your load. Use with caution._
*
Expand Down

0 comments on commit fd80ad3

Please sign in to comment.