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.

Skip empty customer emails in the normalizedEmail backfill

Rafiaad66487c6d0
diff --git a/apps/web/scripts/migrations/backfill-customer-normalized-email.ts b/apps/web/scripts/migrations/backfill-customer-normalized-email.ts
index f80618698a..32915dfb6c 100644
--- a/apps/web/scripts/migrations/backfill-customer-normalized-email.ts
+++ b/apps/web/scripts/migrations/backfill-customer-normalized-email.ts
@@ -35,6 +35,9 @@ async function main() {
email: {
not: null,
},
+ NOT: {
+ email: "",
+ },
normalizedEmail: null,
...(startingAfter && {
id: {