The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update migrate-discounts.ts
Steven Tey321c6317f62b
diff --git a/apps/web/scripts/migrate-discounts.ts b/apps/web/scripts/migrate-discounts.tsindex d33954f277..3c26a2471f 100644--- a/apps/web/scripts/migrate-discounts.ts+++ b/apps/web/scripts/migrate-discounts.ts@@ -1,10 +1,9 @@+// @ts-nocheck – this is a one-time migration script for+// when we migrate the program-wide discounts to the new schema+import { prisma } from "@dub/prisma";import "dotenv-flow/config";-/*-One time script to migrate the program-wide discounts to the new schema.-*/-async function main() {// Migrate program-wide discountsconst programDiscounts = await prisma.discount.findMany({