diff --git a/src/front/Api/LeCoffreApi/SuperAdmin/Documents/Documents.ts b/src/front/Api/LeCoffreApi/SuperAdmin/Documents/Documents.ts index 2f74e8fd..72188423 100644 --- a/src/front/Api/LeCoffreApi/SuperAdmin/Documents/Documents.ts +++ b/src/front/Api/LeCoffreApi/SuperAdmin/Documents/Documents.ts @@ -1,4 +1,4 @@ -import { Document, DocumentHistory } from "le-coffre-resources/dist/SuperAdmin"; +import { Document } from "le-coffre-resources/dist/SuperAdmin"; import { Service } from "typedi"; import BaseSuperAdmin from "../BaseSuperAdmin"; @@ -14,7 +14,7 @@ export interface IGetDocumentsparams { export type IPutDocumentsParams = { document_status?: EDocumentStatus; - document_history?: Partial; + refused_reason?: string; }; export interface IPostDocumentsParams {} diff --git a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx index a266ad95..f737b1bc 100644 --- a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx @@ -249,9 +249,7 @@ class ViewDocumentsClass extends BasePage { try{ await Documents.getInstance().put(this.props.documentUid, { document_status: EDocumentStatus.REFUSED, - document_history: { - refused_reason: this.state.refuseText, - } + refused_reason: this.state.refuseText }); this.props.router.push(