diff --git a/frontend/repositories/comment/api.ts b/frontend/repositories/comment/api.ts index 3159722e..a0d485cc 100644 --- a/frontend/repositories/comment/api.ts +++ b/frontend/repositories/comment/api.ts @@ -35,8 +35,8 @@ export class FromApiCommentItemListRepository implements CommentItemListReposito return CommentItem.valueOf(responseItem) } - async delete(projectId: string, docId: string, item: CommentItem): Promise { - const url = `/projects/${projectId}/docs/${docId}/comments/${item.id}` + async delete(projectId: string, docId: string, commentId: number): Promise { + const url = `/projects/${projectId}/docs/${docId}/comments/${commentId}` const response = await this.request.delete(url) } diff --git a/frontend/repositories/comment/interface.ts b/frontend/repositories/comment/interface.ts index 35c23f6c..02c273bc 100644 --- a/frontend/repositories/comment/interface.ts +++ b/frontend/repositories/comment/interface.ts @@ -19,7 +19,7 @@ export interface CommentItemListRepository { update(projectId: string, docId: string, item: CommentItem): Promise - delete(projectId: string, docId: string, item: CommentItem): Promise + delete(projectId: string, docId: string, commentId: number): Promise deleteBulk(projectId: string, items: number[]): Promise }