From 9c5a9754c148c62affabb4855018b28c8e90ad49 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Thu, 2 Nov 2023 15:32:21 +0530 Subject: [PATCH] fix: report visibility issue except need your sign and recent signature request reports --- apps/OpenSign/src/json/ReportJson.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/json/ReportJson.js b/apps/OpenSign/src/json/ReportJson.js index 3beebff0e..c37ad828d 100644 --- a/apps/OpenSign/src/json/ReportJson.js +++ b/apps/OpenSign/src/json/ReportJson.js @@ -1,7 +1,9 @@ import Parse from "parse"; export default function reportJson(id) { const currentUserId = Parse.User.current().id; - // console.log("userId", currentUserId) + // const extendedCls = localStorage.getItem("Extand_Class"); + // const json = JSON.parse(extendedCls)?.[0]; + // console.log("json ", json); switch (id) { // draft documents report @@ -149,7 +151,7 @@ export default function reportJson(id) { className: "_User", objectId: currentUserId }, - $or: [{ IsDeclined: null }, { IsDeclined: false }] + IsDeclined: { $ne: true } }, keys: [ "Name", @@ -215,6 +217,11 @@ export default function reportJson(id) { reportName: "Declined Documents", className: "contracts_Document", params: { Type: null, IsDeclined: true }, + CreatedBy: { + __type: "Pointer", + className: "_User", + objectId: currentUserId + }, keys: [ "Name", "Note",