mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-21 15:12:34 +02:00
Merge pull request #517 from OpenSignLabs/openSign_drive
feat: updated draft document query
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user