mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
fix: migrate content for documents only (#5699)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
cc7f962b90
commit
06beaedf3d
@ -282,6 +282,7 @@ async function migrateContentField (client: MigrationClient): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const documents = await client.find<Document>(DOMAIN_DOCUMENT, {
|
const documents = await client.find<Document>(DOMAIN_DOCUMENT, {
|
||||||
|
_class: document.class.Document,
|
||||||
content: { $exists: true }
|
content: { $exists: true }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user