🐛 Fixing refuse with back working
This commit is contained in:
parent
2ea53d7a84
commit
da2b372aa5
@ -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<DocumentHistory>;
|
||||
refused_reason?: string;
|
||||
};
|
||||
|
||||
export interface IPostDocumentsParams {}
|
||||
|
@ -249,9 +249,7 @@ class ViewDocumentsClass extends BasePage<IPropsClass, IState> {
|
||||
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user