fix: Add default value for attachment preset for easier API use

This commit is contained in:
Tom Moor
2024-11-29 23:05:30 -05:00
parent d66f41c854
commit 514a724d9d
+3 -1
View File
@@ -18,7 +18,9 @@ export const AttachmentsCreateSchema = BaseSchema.extend({
contentType: z.string().optional().default("application/octet-stream"),
/** Attachment type */
preset: z.nativeEnum(AttachmentPreset),
preset: z
.nativeEnum(AttachmentPreset)
.default(AttachmentPreset.DocumentAttachment),
}),
});