File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
import Parse from "parse" ;
2
2
export default function reportJson ( id ) {
3
3
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);
5
7
6
8
switch ( id ) {
7
9
// draft documents report
@@ -149,7 +151,7 @@ export default function reportJson(id) {
149
151
className : "_User" ,
150
152
objectId : currentUserId
151
153
} ,
152
- $or : [ { IsDeclined : null } , { IsDeclined : false } ]
154
+ IsDeclined : { $ne : true }
153
155
} ,
154
156
keys : [
155
157
"Name" ,
@@ -215,6 +217,11 @@ export default function reportJson(id) {
215
217
reportName : "Declined Documents" ,
216
218
className : "contracts_Document" ,
217
219
params : { Type : null , IsDeclined : true } ,
220
+ CreatedBy : {
221
+ __type : "Pointer" ,
222
+ className : "_User" ,
223
+ objectId : currentUserId
224
+ } ,
218
225
keys : [
219
226
"Name" ,
220
227
"Note" ,
You can’t perform that action at this time.
0 commit comments