Skip to content

Commit 06beaed

Browse files
authored
fix: migrate content for documents only (#5699)
Signed-off-by: Alexander Onnikov <[email protected]>
1 parent cc7f962 commit 06beaed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: models/document/src/migration.ts

+1
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ async function migrateContentField (client: MigrationClient): Promise<void> {
282282
}
283283

284284
const documents = await client.find<Document>(DOMAIN_DOCUMENT, {
285+
_class: document.class.Document,
285286
content: { $exists: true }
286287
})
287288

0 commit comments

Comments
 (0)