fix: revert document content field rename (#6955)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2024-10-16 22:52:46 +07:00
committed by GitHub
parent d1bf10b1d9
commit dea31012b5
10 changed files with 136 additions and 53 deletions
+3 -3
View File
@@ -326,7 +326,7 @@ async function createDBPageWithAttachments (
documentMetaMap?: Map<string, DocumentMetadata>
): Promise<void> {
const pageId = docMeta.id as Ref<Document>
const collabId = makeCollaborativeDoc(pageId, 'description')
const collabId = makeCollaborativeDoc(pageId, 'content')
const parentId = parentMeta !== undefined ? (parentMeta.id as Ref<Document>) : document.ids.NoParent
@@ -335,7 +335,7 @@ async function createDBPageWithAttachments (
const object: Data<Document> = {
title: docMeta.name,
description: collabId,
content: collabId,
parent: parentId,
attachments: 0,
embeddings: 0,
@@ -482,7 +482,7 @@ async function importPageDocument (
const attachedData: Data<Document> = {
title: docMeta.name,
description: collabId,
content: collabId,
parent,
attachments: 0,
embeddings: 0,