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 import-groups.ts

Kiran Kf9aa33ff32d5
diff --git a/apps/web/lib/partnerstack/import-groups.ts b/apps/web/lib/partnerstack/import-groups.ts
index 987f1e994e..b5cde64b9d 100644
--- a/apps/web/lib/partnerstack/import-groups.ts
+++ b/apps/web/lib/partnerstack/import-groups.ts
@@ -1,4 +1,6 @@
+import { RESOURCE_COLORS } from "@/ui/colors";
import { prisma } from "@dub/prisma";
+import { randomValue } from "@dub/utils";
import { createId } from "../api/create-id";
import { PartnerStackApi } from "./api";
import { partnerStackImporter } from "./importer";
@@ -46,6 +48,7 @@ export async function importGroups(payload: PartnerStackImportPayload) {
programId,
name: group.name,
slug: group.slug,
+ color: randomValue(RESOURCE_COLORS),
},
update: {},
});