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-application-groupId.ts

Kiran K5e7969a559eb
diff --git a/apps/web/scripts/partners/backfill-application-groupId.ts b/apps/web/scripts/partners/backfill-application-groupId.ts
index 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 -> defaultGroupId
const 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 programId
for (const { programId, groupId } of toUpdate) {
await prisma.programApplication.updateMany({
where: {