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 Teyb4ea6ccfd19f
diff --git a/apps/web/lib/actions/partners/update-group-branding.ts b/apps/web/lib/actions/partners/update-group-branding.tsindex 1561916ba1..40e527d63c 100644--- a/apps/web/lib/actions/partners/update-group-branding.ts+++ b/apps/web/lib/actions/partners/update-group-branding.ts@@ -141,10 +141,10 @@ export const updateGroupBrandingAction = authActionClient);if (updatedGroup.slug === DEFAULT_PARTNER_GROUP.slug) {- console.log(- `Default ${landerDataInput ? "lander" : "application form"} updated, updating other groups (that don't have a custom data)...`,- );if (landerDataInput) {+ console.log(+ "Default lander data updated, updating other groups (that don't have a custom data)...",+ );const updatedGroups = await prisma.partnerGroup.updateMany({where: {programId,@@ -155,9 +155,14 @@ export const updateGroupBrandingAction = authActionClient},});console.log(- `Updated data for ${updatedGroups.count} other groups based on default group lander data`,+ `Updated data for ${updatedGroups.count} other groups based on default group lander data...`,+ );+ }++ if (applicationFormDataInput) {+ console.log(+ "Default application form data updated, updating other groups (that don't have a custom data)...",);- } else if (applicationFormDataInput) {const updatedGroups = await prisma.partnerGroup.updateMany({where: {programId,