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.

Create migrate-rewards.ts

Kiran Kfaf819b81a6e
diff --git a/apps/web/scripts/migrate-rewards.ts b/apps/web/scripts/migrate-rewards.ts
new file mode 100644
index 0000000000..5965a0eeaf
--- /dev/null
+++ b/apps/web/scripts/migrate-rewards.ts
@@ -0,0 +1,13 @@
+import { prisma } from "@dub/prisma";
+import "dotenv-flow/config";
+
+// programEnrollmentId String
+// rewardId String
+
+async function main() {
+ const partnerRewards = await prisma.partnerReward.findMany({});
+
+ console.table(partnerRewards);
+}
+
+main();