fix: type fix for description payload (#8619)
* fix: type fix * fix: duplicate type fix
This commit is contained in:
parent
ea7b30bc9c
commit
e1227f0b58
1 changed files with 2 additions and 8 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue