Skip to content

Commit aaa00eb

Browse files
committed
fix: include options parameter in createIndex method
Signed-off-by: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com>
1 parent 9a13d67 commit aaa00eb

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)