Merge pull request #517 from OpenSignLabs/openSign_drive

feat: updated draft document query
This commit is contained in:
prafull-opensignlabs
2024-03-20 19:16:46 +05:30
committed by GitHub
2 changed files with 4 additions and 22 deletions
@@ -302,18 +302,7 @@ function DriveBody(props) {
status = "Completed";
} else if (isDecline) {
status = "Declined";
} else if (!signerExist || signerExist?.length === 0) {
status = "Draft";
} else if (
signerExist?.length > 0 &&
(!isPlaceholder || isPlaceholder?.length === 0)
) {
status = "Draft";
} else if (
signerExist?.length > 0 &&
isPlaceholder?.length > 0 &&
!signedUrl
) {
} else if (!signedUrl) {
status = "Draft";
} else if (isExpire) {
status = "Expired";
@@ -11,11 +11,7 @@ export default function reportJson(id, userId) {
IsCompleted: { $ne: true },
IsDeclined: { $ne: true },
IsArchive: { $ne: true },
$or: [
{ Signers: { $eq: [] } },
{ Signers: null },
{ Signers: { $exists: true }, Placeholders: null },
],
SignedUrl: { $exists: false },
CreatedBy: {
__type: 'Pointer',
className: '_User',
@@ -33,6 +29,7 @@ export default function reportJson(id, userId) {
'Signers.Phone',
],
};
// Need your sign report
case '4Hhwbp482K':
return {
@@ -273,11 +270,7 @@ export default function reportJson(id, userId) {
IsCompleted: { $ne: true },
IsDeclined: { $ne: true },
IsArchive: { $ne: true },
$or: [
{ Signers: { $eq: [] } },
{ Signers: null },
{ Signers: { $exists: true }, Placeholders: null },
],
SignedUrl: { $exists: false },
CreatedBy: {
__type: 'Pointer',
className: '_User',