From 9b78ef18d10faa76d376cce22402fd6481f30a1e Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Sat, 13 Jan 2024 10:39:34 +0100 Subject: [PATCH] Revert "patch notion" (#3192) --- .../src/connectors/notion/temporal/activities.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/connectors/src/connectors/notion/temporal/activities.ts b/connectors/src/connectors/notion/temporal/activities.ts index ddb3e5675b7b..161b11f0f8be 100644 --- a/connectors/src/connectors/notion/temporal/activities.ts +++ b/connectors/src/connectors/notion/temporal/activities.ts @@ -1,8 +1,4 @@ -import { - CoreAPIDataSourceDocumentSection, - ModelId, - sectionFullText, -} from "@dust-tt/types"; +import { CoreAPIDataSourceDocumentSection, ModelId } from "@dust-tt/types"; import { isFullBlock, isFullPage, isNotionClientError } from "@notionhq/client"; import { Context } from "@temporalio/activity"; import { Op } from "sequelize"; @@ -1737,19 +1733,13 @@ export async function renderAndUpsertPageFromCache({ runTimestamp.toString() ); - const contentFlat = sectionFullText(renderedPageSection); - const content = renderDocumentTitleAndContent({ title: title ?? null, createdAt: createdAt, updatedAt: updatedAt, author, lastEditor, - content: { - prefix: null, - content: contentFlat, - sections: [], - }, + content: renderedPageSection, }); localLogger.info(