The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran Kb9b00b6c92a8
diff --git a/apps/web/app/(ee)/api/fraud/rules/route.ts b/apps/web/app/(ee)/api/fraud/rules/route.tsindex 179d87f232..e0c5e3c533 100644--- a/apps/web/app/(ee)/api/fraud/rules/route.ts+++ b/apps/web/app/(ee)/api/fraud/rules/route.ts@@ -19,6 +19,11 @@ export const GET = withWorkspace(where: {programId,},+ select: {+ type: true,+ config: true,+ disabledAt: true,+ },});const mergedFraudRules = CONFIGURABLE_FRAUD_RULES.map(({ type }) => {@@ -36,6 +41,19 @@ export const GET = withWorkspace(};}+ if (+ ["customerEmailMatch", "customerEmailSuspiciousDomain"].includes(+ type,+ ) &&+ !fraudRule+ ) {+ return {+ type,+ enabled: true,+ config: {},+ };+ }+return {type,enabled: fraudRule?.disabledAt === null,