feat: save declined by user details in-progress report

This commit is contained in:
RaktimaNXG
2024-09-03 20:23:54 +05:30
parent d547e0552a
commit ab6c88bebd
@@ -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/${