The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
console.error → console.log
Steven Tey746f7966487c
diff --git a/apps/web/app/api/stripe/integration/webhook/invoice-paid.ts b/apps/web/app/api/stripe/integration/webhook/invoice-paid.tsindex 93bb17435b..697bbdae42 100644--- a/apps/web/app/api/stripe/integration/webhook/invoice-paid.ts+++ b/apps/web/app/api/stripe/integration/webhook/invoice-paid.ts@@ -49,7 +49,7 @@ export async function invoicePaid(event: Stripe.Event) {},});} catch (error) {- console.error(error);+ console.log(error);return `Customer with dubCustomerId ${dubCustomerId} not found, skipping...`;}}diff --git a/apps/web/lib/actions/send-otp.ts b/apps/web/lib/actions/send-otp.tsindex 8e0f1ac9cd..c2b9063576 100644--- a/apps/web/lib/actions/send-otp.ts+++ b/apps/web/lib/actions/send-otp.ts@@ -70,6 +70,18 @@ export const sendOtpAction = actionClient}}+ const isExistingUser = await prisma.user.findUnique({+ where: {+ email,+ },+ });++ if (isExistingUser) {+ throw new Error(+ "User already exists. Please login instead of requesting a new OTP.",+ );+ }+const code = generateOTP();await prisma.emailVerificationToken.deleteMany({