Skip to content

Commit

Permalink
Merge pull request #7036 from lineus/fix-6922
Browse files Browse the repository at this point in the history
fixes #6922 fix typo in model.js
  • Loading branch information
vkarpov15 authored Sep 21, 2018
2 parents b30edd1 + 0e9d6d3 commit ff0f2dc
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 @@ -1305,7 +1305,7 @@ function _ensureIndexes(model, options, callback) {
useCreateIndex = !!model.db.config.useCreateIndex;
}
if ('createIndex' in options) {
useCreateIndex = !!options.useCreateIndex;
useCreateIndex = !!options.createIndex;
}

const methodName = useCreateIndex ? 'createIndex' : 'ensureIndex';
Expand Down

0 comments on commit ff0f2dc

Please sign in to comment.