The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
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.tsindex 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 = authActionClientnewValue !== 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 = authActionClientconsole.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,+ },+ });+ }}),);