From 925ff7fdfaac20872f7a4c9219ad529a845ca910 Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Mon, 22 Jun 2026 16:24:34 +1000 Subject: [PATCH] chore: add disclaimer to related rejection files --- .../server-only/document/reject-document-on-behalf-of.ts | 8 ++++++++ .../server-only/document/reject-document-with-token.ts | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/packages/lib/server-only/document/reject-document-on-behalf-of.ts b/packages/lib/server-only/document/reject-document-on-behalf-of.ts index 5c921cc8e..4816b797f 100644 --- a/packages/lib/server-only/document/reject-document-on-behalf-of.ts +++ b/packages/lib/server-only/document/reject-document-on-behalf-of.ts @@ -1,3 +1,11 @@ +// This is closely related to `reject-document-with-token.ts` but is intentionally +// kept as a separate method rather than merged into one. This file focuses on +// rejection from an API/programmatic perspective (an authenticated API user acting +// on behalf of a recipient), whereas `reject-document-with-token.ts` focuses on it +// from a recipient perspective (the recipient rejecting via their token). +// +// Code changes in one should probably be mirrored to the other, particularly in +// relation to the jobs triggered after a rejection. import { jobs } from '@documenso/lib/jobs/client'; import { prisma } from '@documenso/prisma'; import { DocumentStatus, EnvelopeType, SigningStatus } from '@prisma/client'; diff --git a/packages/lib/server-only/document/reject-document-with-token.ts b/packages/lib/server-only/document/reject-document-with-token.ts index f5cc18a2e..a8555b42b 100644 --- a/packages/lib/server-only/document/reject-document-with-token.ts +++ b/packages/lib/server-only/document/reject-document-with-token.ts @@ -1,3 +1,11 @@ +// This is closely related to `reject-document-on-behalf-of.ts` but is intentionally +// kept as a separate method rather than merged into one. This file focuses on +// rejection from a recipient perspective (the recipient rejecting via their token), +// whereas `reject-document-on-behalf-of.ts` focuses on it from an API/programmatic +// perspective (an authenticated API user acting on behalf of a recipient). +// +// Code changes in one should probably be mirrored to the other, particularly in +// relation to the jobs triggered after a rejection. import { jobs } from '@documenso/lib/jobs/client'; import { prisma } from '@documenso/prisma'; import { DocumentStatus, EnvelopeType, SigningStatus } from '@prisma/client';