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.

keep program.logo for now

Steven Tey05d3f29e48b2
diff --git a/apps/web/lib/actions/partners/create-program.ts b/apps/web/lib/actions/partners/create-program.ts
index 37615ab451..061726186b 100644
--- a/apps/web/lib/actions/partners/create-program.ts
+++ b/apps/web/lib/actions/partners/create-program.ts
@@ -103,6 +103,7 @@ export const createProgram = async ({
slug: workspace.slug,
domain,
url,
+ logo: logoUrl, // TODO: remove after we refactor all program.logo fields to use group.logo instead
defaultFolderId: programFolder.id,
defaultGroupId,
supportEmail,
diff --git a/packages/prisma/schema/program.prisma b/packages/prisma/schema/program.prisma
index 9b639a5622..55c603e34d 100644
--- a/packages/prisma/schema/program.prisma
+++ b/packages/prisma/schema/program.prisma
@@ -33,6 +33,7 @@ model Program {
slug String @unique
domain String?
url String?
+ logo String? // TODO: remove after we refactor all program.logo fields to use group.logo instead
primaryRewardEvent EventType @default(sale)
minPayoutAmount Int @default(0) // Default minimum payout amount of $0
payoutMode ProgramPayoutMode @default(internal)
@@ -51,7 +52,6 @@ model Program {
startedAt DateTime?
// DEPRECATED FIELDS: TODO – remove after migration
- logo String?
wordmark String?
brandColor String?
holdingPeriodDays Int @default(0)