The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update backfill-application-groupId.ts
Kiran K5e7969a559eb
diff --git a/apps/web/scripts/partners/backfill-application-groupId.ts b/apps/web/scripts/partners/backfill-application-groupId.tsindex a953f7ef8e..9fe29192af 100644--- a/apps/web/scripts/partners/backfill-application-groupId.ts+++ b/apps/web/scripts/partners/backfill-application-groupId.ts@@ -32,8 +32,6 @@ async function main() {`Found ${programApplications.length} program applications to update`,);- console.log(programApplications);-// Create a map of programId -> defaultGroupIdconst programMap = new Map(programs.map(({ id, defaultGroupId }) => [id, defaultGroupId]),@@ -47,6 +45,7 @@ async function main() {console.table(toUpdate);+ // Batch update the applications for the same programIdfor (const { programId, groupId } of toUpdate) {await prisma.programApplication.updateMany({where: {