Skip to content

🔥 The free & Open Source DocuSign alternative

fix: expired report query

prafull-opensignlabs19ba9e3091e4
diff --git a/apps/OpenSignServer/cloud/parsefunction/reportsJson.js b/apps/OpenSignServer/cloud/parsefunction/reportsJson.js
index 2aa126dd5..be55bcd98 100644
--- a/apps/OpenSignServer/cloud/parsefunction/reportsJson.js
+++ b/apps/OpenSignServer/cloud/parsefunction/reportsJson.js
@@ -164,19 +164,10 @@ export default function reportJson(id, userId) {
IsDeclined: { $ne: true },
IsArchive: { $ne: true },
Type: { $ne: 'Folder' },
- $and: [
- {
- $or: [
- { Signers: { $ne: null }, SignedUrl: { $ne: null } },
- { Placeholders: { $ne: null } },
- ],
- },
- {
- ExpiryDate: {
- $lt: { __type: 'Date', iso: new Date().toISOString() },
- },
- },
- ],
+ SignedUrl: { $ne: null },
+ ExpiryDate: {
+ $lt: { __type: 'Date', iso: new Date().toISOString() },
+ },
CreatedBy: {
__type: 'Pointer',
className: '_User',