diff --git a/apps/live/src/services/page/core.service.ts b/apps/live/src/services/page/core.service.ts index 9d51d8236a1..c3f3242cf35 100644 --- a/apps/live/src/services/page/core.service.ts +++ b/apps/live/src/services/page/core.service.ts @@ -5,17 +5,11 @@ */ import { logger } from "@plane/logger"; -import type { TPage } from "@plane/types"; +import type { TDocumentPayload, TPage } from "@plane/types"; // services import { AppError } from "@/lib/errors"; import { APIService } from "../api.service"; -export type TPageDescriptionPayload = { - description_binary: string; - description_html: string; - description: object; -}; - export type TUserMention = { id: string; display_name: string; @@ -121,7 +115,7 @@ export abstract class PageCoreService extends APIService { } } - async updateDescriptionBinary(pageId: string, data: TPageDescriptionPayload): Promise { + async updateDescriptionBinary(pageId: string, data: TDocumentPayload): Promise { try { const response = await this.patch(`${this.basePath}/pages/${pageId}/description/`, data, { headers: this.getHeader(),