Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: followup fixes
Aashish-Upadhyay-101942e885d49ac
diff --git a/lib/trigger/send-scheduled-email.ts b/lib/trigger/send-scheduled-email.tsindex eedef402..915e26aa 100644--- a/lib/trigger/send-scheduled-email.ts+++ b/lib/trigger/send-scheduled-email.ts@@ -50,14 +50,9 @@ export const sendDataroomTrialExpiredEmailTask = task({const isPaid = ["pro", "business", "datarooms", "datarooms-plus"].includes(updatedTeam.plan);if (!isPaid) {- await prisma.team.update({+ await prisma.brand.deleteMany({where: {- id: payload.teamId,- },- data: {- brand: {- delete: true- }+ teamId: payload.teamId,}})diff --git a/pages/branding.tsx b/pages/branding.tsxindex 30824698..5c45d6a5 100644--- a/pages/branding.tsx+++ b/pages/branding.tsx@@ -32,7 +32,7 @@ export default function Branding() {const teamInfo = useTeam();const router = useRouter();const { brand } = useBrand();- const { plan } = usePlan();+ const { plan, isTrial } = usePlan();const [brandColor, setBrandColor] = useState<string>("#000000");const [accentColor, setAccentColor] = useState<string>("#030712");@@ -388,7 +388,7 @@ export default function Branding() {</div></CardContent><CardFooter className="border-t p-6">- {plan === "free" ? (+ {plan === "free" && !isTrial ? (<UpgradePlanModalclickedPlan={PlanEnum.Pro}trigger={"branding_page"}