[PR #1888] [MERGED] fix: resend document api v1 filtering logic #1909

Closed
opened 2026-02-26 20:31:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1888
Author: @ephraimduncan
Created: 7/10/2025
Status: Merged
Merged: 7/16/2025
Merged by: @Mythie

Base: mainHead: fix/api-resend-error


📝 Commits (2)

  • e291942 fix: resend document api v1 filtering logic
  • 4bea156 chore: rename

📊 Changes

1 file changed (+7 additions, -9 deletions)

View changed files

📝 packages/lib/server-only/document/resend-document.ts (+7 -9)

📄 Description

Description

The resend document API was not working correctly when filtering recipients. The query was filtering recipients at the database level, which could result in an empty recipients array being returned even when the document had recipients. This prevented the API from properly identifying which recipients needed reminder emails.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1888 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 7/10/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `fix/api-resend-error` --- ### 📝 Commits (2) - [`e291942`](https://github.com/documenso/documenso/commit/e2919420d00c6b624c6ad56601c5bbb7d368181c) fix: resend document api v1 filtering logic - [`4bea156`](https://github.com/documenso/documenso/commit/4bea15634ce81cce7512b1e4404609acb6dfcc48) chore: rename ### 📊 Changes **1 file changed** (+7 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/server-only/document/resend-document.ts` (+7 -9) </details> ### 📄 Description ### Description The resend document API was not working correctly when filtering recipients. The query was filtering recipients at the database level, which could result in an empty recipients array being returned even when the document had recipients. This prevented the API from properly identifying which recipients needed reminder emails. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:31:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1909
No description provided.