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 update-group-branding.ts

Steven Teya3caef79067f
diff --git a/apps/web/lib/actions/partners/update-group-branding.ts b/apps/web/lib/actions/partners/update-group-branding.ts
index 19b54e1c12..43ec083ba7 100644
--- a/apps/web/lib/actions/partners/update-group-branding.ts
+++ b/apps/web/lib/actions/partners/update-group-branding.ts
@@ -156,7 +156,6 @@ export const updateGroupBrandingAction = authActionClient
newValue !== undefined && oldValue !== newValue,
)
.map(async ({ item, oldValue, newValue }) => {
- console.log({ item, oldValue, newValue });
console.log(
`Default group's ${item} updated, updating other groups (that have the same ${item})...`,
);
@@ -172,6 +171,16 @@ export const updateGroupBrandingAction = authActionClient
console.log(
`Updated ${updatedGroups.count} other groups based on default group's ${item}`,
);
+ if (item === "logo") {
+ await prisma.program.update({
+ where: {
+ id: programId,
+ },
+ data: {
+ logo: newValue,
+ },
+ });
+ }
}),
);