From ab6c88bebd09b3b6391c5ac10b150a9619c88de5 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Tue, 3 Sep 2024 20:23:54 +0530 Subject: [PATCH] feat: save declined by user details in-progress report --- apps/OpenSign/src/primitives/GetReportDisplay.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index 9171b52a7..94e98f145 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -473,9 +473,21 @@ const ReportTable = (props) => { }; //function to handle revoke/decline docment const handleRevoke = async (item) => { + const senderUser = localStorage.getItem( + `Parse/${localStorage.getItem("parseAppId")}/currentUser` + ); + const jsonSender = JSON.parse(senderUser); setIsRevoke({}); setActLoader({ [`${item.objectId}`]: true }); - const data = { IsDeclined: true, DeclineReason: reason }; + const data = { + IsDeclined: true, + DeclineReason: reason, + DeclineBy: { + __type: "Pointer", + className: "_User", + objectId: jsonSender?.objectId + } + }; await axios .put( `${localStorage.getItem("baseUrl")}classes/contracts_Document/${