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 K10898ee3afcf
diff --git a/apps/web/lib/partnerstack/import-groups.ts b/apps/web/lib/partnerstack/import-groups.ts
index ad86230359..0af0d392a4 100644
--- a/apps/web/lib/partnerstack/import-groups.ts
+++ b/apps/web/lib/partnerstack/import-groups.ts
@@ -1,6 +1,5 @@
import { prisma } from "@dub/prisma";
import { createId } from "../api/create-id";
-import { DEFAULT_PARTNER_GROUP } from "../zod/schemas/groups";
import { PartnerStackApi } from "./api";
import { partnerStackImporter } from "./importer";
import { PartnerStackImportPayload } from "./types";
@@ -12,12 +11,8 @@ export async function importGroups(payload: PartnerStackImportPayload) {
where: {
id: programId,
},
- include: {
- groups: {
- where: {
- slug: DEFAULT_PARTNER_GROUP.slug,
- },
- },
+ select: {
+ workspaceId: true,
},
});
@@ -34,8 +29,6 @@ export async function importGroups(payload: PartnerStackImportPayload) {
if (groups.length > 0) {
for (const group of groups) {
- console.log(group);
-
// Default group is already created in the program creation
if (group.default) {
continue;