Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: type fix for description payload (#8619)

M. Palanikannane1227f0b58b9
diff --git a/apps/live/src/services/page/core.service.ts b/apps/live/src/services/page/core.service.ts
index 9d51d8236a..c3f3242cf3 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<any> {
+ async updateDescriptionBinary(pageId: string, data: TDocumentPayload): Promise<any> {
try {
const response = await this.patch(`${this.basePath}/pages/${pageId}/description/`, data, {
headers: this.getHeader(),