Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Mar 31, 2021
1 parent f3cd3a8 commit 9e4a083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ function _ensureIndexes(model, options, callback) {
indexOptions.background = options.background;
}
if (model.schema.options.hasOwnProperty('collation') &&
!indexOptions.hasOwnProperty('collation')
!indexOptions.hasOwnProperty('collation') &&
!isTextIndex) {
indexOptions.collation = model.schema.options.collation;
}
Expand Down

0 comments on commit 9e4a083

Please sign in to comment.