Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Clarify the comment on database-only search queries

Rafi1fd57a968f66
diff --git a/apps/web/lib/api/partners/search/build-search-query.ts b/apps/web/lib/api/partners/search/build-search-query.ts
index 6df925947a..c6672b9e20 100644
--- a/apps/web/lib/api/partners/search/build-search-query.ts
+++ b/apps/web/lib/api/partners/search/build-search-query.ts
@@ -65,8 +65,8 @@ export function buildPartnerSearchCandidateQuery({
// Exact email and tenant lookups remain database-only. The search provider
// is responsible only for finding relevance-ranked free-text candidates.
//
- // A complete email address or a pasted partner ID in the search joins them.
- // The database matches both exactly, so a miss returns no partners.
+ // A complete email address or a pasted partner ID in the search also stays
+ // on the database path, which matches it exactly.
if (
!query ||
email ||