fix: migrate content for documents only (#5699)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-05-30 18:38:50 +07:00 committed by GitHub
parent cc7f962b90
commit 06beaedf3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,6 +282,7 @@ async function migrateContentField (client: MigrationClient): Promise<void> {
}
const documents = await client.find<Document>(DOMAIN_DOCUMENT, {
_class: document.class.Document,
content: { $exists: true }
})