Skip to content

Commit c6ce263

Browse files
digorgonzoladhmlau
authored andcommitted
fix: include options parameter in createIndex method
Signed-off-by: Stefan Hattrell <[email protected]>
1 parent fa44087 commit c6ce263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongodb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ MongoDB.prototype.autoupdate = function(models, cb) {
22282228
debug('createIndex: ', index);
22292229
}
22302230
const callbackCreateIndex = util.callbackify(() => self
2231-
.collection(modelName).createIndex(index.fields || index.keys));
2231+
.collection(modelName).createIndex(index.fields || index.keys, index.options));
22322232
callbackCreateIndex(indexCallback);
22332233
},
22342234
modelCallback,

0 commit comments

Comments
 (0)