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';