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.

Update backfill-customers.ts

Kiran K2bb1d45af1c7
diff --git a/apps/web/scripts/backfill-customers.ts b/apps/web/scripts/backfill-customers.ts
index 7687eac27d..a0f5bd2be3 100644
--- a/apps/web/scripts/backfill-customers.ts
+++ b/apps/web/scripts/backfill-customers.ts
@@ -1,16 +1,9 @@
-import "dotenv-flow/config";
import { getClickEvent, getLeadEvent } from "@/lib/tinybird";
import { prisma } from "@dub/prisma";
-
+import "dotenv-flow/config";
// Backfill new customer columns such as linkId, clickId, country
-// linkId String?
-// clickId String?
-// clickedAt DateTime?
-// leadCreatedAt DateTime?
-// country String?
-
async function main() {
const customers = await prisma.customer.findMany({
where: {
@@ -96,6 +89,5 @@ async function main() {
main();
-
// '2024-12-17 13:48:52.533'
-// new Date('2024-12-17 13:48:52.533')
\ No newline at end of file
+// new Date('2024-12-17 13:48:52.533')