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 migrate-sales.ts

Steven Tey8af546475d1b
diff --git a/apps/web/scripts/migrate-sales.ts b/apps/web/scripts/migrate-sales.ts
index a9fc8388fe..2dc4f1abfb 100644
--- a/apps/web/scripts/migrate-sales.ts
+++ b/apps/web/scripts/migrate-sales.ts
@@ -20,7 +20,7 @@ async function main() {
createdAt: true,
updatedAt: true,
},
- take: 10,
+ take: 1000,
skip: 0,
});
@@ -35,6 +35,7 @@ async function main() {
type: EventType.sale,
quantity: 1,
})),
+ skipDuplicates: true,
});
console.log(`Migrated ${sales.length} sales.`);