Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: update domain field to use nullish in schema

Marc Seitza2794db0b25e
diff --git a/ee/features/workflows/lib/types.ts b/ee/features/workflows/lib/types.ts
index ca09075d..875e482b 100644
--- a/ee/features/workflows/lib/types.ts
+++ b/ee/features/workflows/lib/types.ts
@@ -65,7 +65,7 @@ export const CreateWorkflowRequestSchema = z.object({
description: z.string().max(500).optional(),
teamId: z.string().cuid(),
// Entry link details
- domain: z.string().optional(), // null means papermark.com
+ domain: z.string().nullish(), // null or undefined means papermark.com
slug: z
.string()
.regex(/^[a-zA-Z0-9_-]+$/, "Slug must contain only letters, numbers, hyphens, and underscores")