feat: monthly email digest (#10621)

Co-authored-by: Carina Wollendorfer <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-09-19 16:19:36 +02:00
1 parent 50970dc249
commit 786c1c2ba3
15 files changed
+684 -7

No files matched your search

@@ -59,6 +59,7 @@ export async function getUserFromSession(ctx: TRPCContextInner, session: Maybe<S
organizationId: true,
allowDynamicBooking: true,
allowSEOIndexing: true,
receiveMonthlyDigestEmail: true,
organization: {
select: {
id: true,
@@ -46,6 +46,7 @@ export const meHandler = async ({ ctx }: MeOptions) => {
defaultBookerLayouts: user.defaultBookerLayouts,
allowDynamicBooking: user.allowDynamicBooking,
allowSEOIndexing: user.allowSEOIndexing,
receiveMonthlyDigestEmail: user.receiveMonthlyDigestEmail,
organizationId: user.organizationId,
organization: user.organization,
};
@@ -19,6 +19,7 @@ export const ZUpdateProfileInputSchema = z.object({
hideBranding: z.boolean().optional(),
allowDynamicBooking: z.boolean().optional(),
allowSEOIndexing: z.boolean().optional(),
receiveMonthlyDigestEmail: z.boolean().optional(),
brandColor: z.string().optional(),
darkBrandColor: z.string().optional(),
theme: z.string().optional().nullable(),