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.

update comments

Steven Tey186f6febcbd2
diff --git a/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts b/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts
index 665017d75d..0ec807262d 100644
--- a/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts
+++ b/apps/web/app/(ee)/api/stripe/connect/webhook/account-updated.ts
@@ -108,8 +108,7 @@ export async function accountUpdated(event: Stripe.AccountUpdatedEvent) {
},
});
- // Queue an index update because the partner country moved, a filterable
- // field.
+ // Queue an index update because the partner country moved (filterable field)
if (countryChanged) {
await queuePartnerSearchSync({ partnerIds: [partner.id] });
}
diff --git a/apps/web/lib/api/partners/program-enrollment-query.ts b/apps/web/lib/api/partners/program-enrollment-query.ts
index 4a4627ca5d..797a1c4c08 100644
--- a/apps/web/lib/api/partners/program-enrollment-query.ts
+++ b/apps/web/lib/api/partners/program-enrollment-query.ts
@@ -17,8 +17,7 @@ export function isExactEmailQuery(query: string): boolean {
/**
* A pasted partner ID, not a prefix of one. IDs are 24 or 25 characters after
- * `pn_`, verified against all 626,348 production documents, so a shorter
- * suffix is someone typing, and matching it exactly would return nothing.
+ * `pn_`, so a shorter suffix is someone typing, and matching it exactly would return nothing.
*/
export function isExactPartnerIdQuery(query: string): boolean {
return /^pn_[a-z0-9]{24,}$/iu.test(query);