Skip to content

Commit 64a46d3

Browse files
authored
Merge pull request #120 from prafull-opensignlabs/staging
2 parents 566a0b6 + 9c5a975 commit 64a46d3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/OpenSign/src/json/ReportJson.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Parse from "parse";
22
export default function reportJson(id) {
33
const currentUserId = Parse.User.current().id;
4-
// console.log("userId", currentUserId)
4+
// const extendedCls = localStorage.getItem("Extand_Class");
5+
// const json = JSON.parse(extendedCls)?.[0];
6+
// console.log("json ", json);
57

68
switch (id) {
79
// draft documents report
@@ -149,7 +151,7 @@ export default function reportJson(id) {
149151
className: "_User",
150152
objectId: currentUserId
151153
},
152-
$or: [{ IsDeclined: null }, { IsDeclined: false }]
154+
IsDeclined: { $ne: true }
153155
},
154156
keys: [
155157
"Name",
@@ -215,6 +217,11 @@ export default function reportJson(id) {
215217
reportName: "Declined Documents",
216218
className: "contracts_Document",
217219
params: { Type: null, IsDeclined: true },
220+
CreatedBy: {
221+
__type: "Pointer",
222+
className: "_User",
223+
objectId: currentUserId
224+
},
218225
keys: [
219226
"Name",
220227
"Note",

0 commit comments

Comments
 (0)