fix: expired report query

This commit is contained in:
prafull-opensignlabs
2024-04-02 14:15:03 +05:30
parent 8c64a89f08
commit 19ba9e3091
@@ -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',