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.

remove scheduledAt

Steven Teyf506bf0396b9
diff --git a/apps/web/app/api/stripe/webhook/utils.ts b/apps/web/app/api/stripe/webhook/utils.ts
index 029d7292e5..978d13af3a 100644
--- a/apps/web/app/api/stripe/webhook/utils.ts
+++ b/apps/web/app/api/stripe/webhook/utils.ts
@@ -33,12 +33,6 @@ export async function sendCancellationFeedback({
replyToFromEmail: true,
subject: "Feedback for Dub.co?",
text: `Hey ${owner.name ? owner.name.split(" ")[0] : "there"}!\n\nSaw you canceled your Dub subscription${reasonText ? ` and mentioned that ${reasonText}` : ""} – do you mind sharing if there's anything we could've done better on our side?\n\nWe're always looking to improve our product offering so any feedback would be greatly appreciated!\n\nThank you so much in advance!\n\nBest,\nSteven Tey\nFounder, Dub.co`,
- // artificially delay anywhere between 2-4 hours to make it feel more like a human
- scheduledAt: new Date(
- Date.now() +
- 1000 * 60 * 60 * 2 +
- Math.floor(Math.random() * 1000 * 60 * 60 * 2),
- ).toISOString(),
}),
),
);