feat: cap automated reminders before resend (#3016)

Stop sending automated reminders after a configurable threshold
(default 5) and reset the count on manual resend.
This commit is contained in:
Lucas Smith
2026-06-23 15:11:52 +10:00
committed by GitHub
parent f2525ae95b
commit 04f6e76178
6 changed files with 52 additions and 17 deletions
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Recipient" ADD COLUMN "reminderCount" INTEGER NOT NULL DEFAULT 0;
+1
View File
@@ -642,6 +642,7 @@ model Recipient {
signedAt DateTime?
lastReminderSentAt DateTime?
nextReminderAt DateTime?
reminderCount Int @default(0)
authOptions Json? /// [RecipientAuthOptions] @zod.custom.use(ZRecipientAuthOptionsSchema)
signingOrder Int? /// @zod.number.describe("The order in which the recipient should sign the document. Only works if the document is set to sequential signing.")
rejectionReason String?