fix(db-mongodb): spread version schema options correctly (#11793)

This commit is contained in:
Jarrod Flesch
2025-03-20 10:22:51 -04:00
committed by GitHub
parent 6640b1cdfd
commit 1d25b16a4a

View File

@@ -37,8 +37,8 @@ export const init: Init = function init(this: MongooseAdapter) {
options: { options: {
minimize: false, minimize: false,
timestamps: false, timestamps: false,
...schemaOptions,
}, },
...schemaOptions,
}, },
compoundIndexes: buildVersionCompoundIndexes({ indexes: collection.sanitizedIndexes }), compoundIndexes: buildVersionCompoundIndexes({ indexes: collection.sanitizedIndexes }),
configFields: versionCollectionFields, configFields: versionCollectionFields,