@payloadcms/db-mongodb 1.0.0-beta.7 → 1.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/db-mongodb",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "The officially supported MongoDB database adapter for Payload",
5
5
  "repository": "https://github.com/payloadcms/payload",
6
6
  "license": "MIT",
@@ -69,7 +69,7 @@ module.exports.up = ` async function migrateCollectionDocs(slug: string, docsAt
69
69
  // For each collection
70
70
  await Promise.all(
71
71
  payload.config.collections.map(async ({ slug, versions }) => {
72
- if (versions) {
72
+ if (versions?.drafts) {
73
73
  return migrateCollectionDocs(slug)
74
74
  }
75
75
  }),