@payloadcms/db-mongodb
Advanced tools
Comparing version 3.0.0-beta.78 to 3.0.0-beta.79
@@ -14,2 +14,11 @@ import paginate from 'mongoose-paginate-v2'; | ||
}); | ||
if (Array.isArray(collection.upload.filenameCompoundIndex)) { | ||
const indexDefinition = collection.upload.filenameCompoundIndex.reduce((acc, index)=>{ | ||
acc[index] = 1; | ||
return acc; | ||
}, {}); | ||
schema.index(indexDefinition, { | ||
unique: true | ||
}); | ||
} | ||
if (config.indexSortableFields && collection.timestamps !== false) { | ||
@@ -16,0 +25,0 @@ schema.index({ |
{ | ||
"name": "@payloadcms/db-mongodb", | ||
"version": "3.0.0-beta.78", | ||
"version": "3.0.0-beta.79", | ||
"description": "The officially supported MongoDB database adapter for Payload", | ||
@@ -41,6 +41,6 @@ "homepage": "https://payloadcms.com", | ||
"@payloadcms/eslint-config": "3.0.0-beta.59", | ||
"payload": "3.0.0-beta.78" | ||
"payload": "3.0.0-beta.79" | ||
}, | ||
"peerDependencies": { | ||
"payload": "3.0.0-beta.78" | ||
"payload": "3.0.0-beta.79" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
307562
2978