Merge pull request #554 from OpenSignLabs/patch-1

fix: Expired report query
This commit is contained in:
prafull-opensignlabs
2024-04-02 14:17:08 +05:30
committed by GitHub
4 changed files with 26 additions and 63 deletions
@@ -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',