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 defaultProduct

Kiran Kd08615b81302
diff --git a/apps/web/lib/sandbox/create-staging-program.ts b/apps/web/lib/sandbox/create-staging-program.ts
index 6c3b6bd9d1..1b1d4887ae 100644
--- a/apps/web/lib/sandbox/create-staging-program.ts
+++ b/apps/web/lib/sandbox/create-staging-program.ts
@@ -202,6 +202,7 @@ export async function createStagingProgram(workspaceId: string) {
},
data: {
defaultProgramId: stagingProgramId,
+ defaultProduct: "program",
},
});
diff --git a/apps/web/lib/sandbox/create-staging-workspace.ts b/apps/web/lib/sandbox/create-staging-workspace.ts
index 3d0ca189bc..6860d7f2c7 100644
--- a/apps/web/lib/sandbox/create-staging-workspace.ts
+++ b/apps/web/lib/sandbox/create-staging-workspace.ts
@@ -83,6 +83,7 @@ export async function createStagingWorkspace(workspaceId: string) {
logo: workspace.logo,
environment: WorkspaceEnvironment.staging,
plan: workspace.plan,
+ defaultProduct: "program",
billingCycleStart: new Date().getDate(),
invoicePrefix: generateRandomString(8),
// Staging workspace will uses the trial limits