Skip to content

Commit

Permalink
Revert "patch notion" (#3192)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Jan 13, 2024
1 parent ce9f817 commit 9b78ef1
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions connectors/src/connectors/notion/temporal/activities.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 9b78ef1

Please sign in to comment.