diff --git a/models/document/src/migration.ts b/models/document/src/migration.ts index c6490ebf78..b3067fb350 100644 --- a/models/document/src/migration.ts +++ b/models/document/src/migration.ts @@ -282,6 +282,7 @@ async function migrateContentField (client: MigrationClient): Promise { } const documents = await client.find(DOMAIN_DOCUMENT, { + _class: document.class.Document, content: { $exists: true } })