Skip to content

Commit c03819f

Browse files
fix: resend mail API is not working
1 parent 4e128e5 commit c03819f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/OpenSignServer/cloud/customRoute/v1/routes/resendMail.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ export default async function resendMail(request, response) {
3333
docQuery.notEqualTo('IsCompleted', true);
3434
docQuery.notEqualTo('IsDeclined', true);
3535
docQuery.notEqualTo('IsArchive', true);
36-
docQuery.lessThanOrEqualTo('ExpiryDate', new Date());
36+
docQuery.greaterThanOrEqualTo('ExpiryDate', new Date());
3737
docQuery.exists('SignedUrl');
3838

3939
const resDoc = await docQuery.first({ useMasterKey: true });
40+
// console.log("resDoc ",resDoc)
4041
if (resDoc) {
4142
const _resDoc = resDoc.toJSON();
4243
const contact = _resDoc.Signers.find(x => x.Email === userMail);

0 commit comments

Comments
 (0)