Send Email to Owner on Form Submission (#5261)

Co-authored-by: alannnc <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-11-03 20:10:03 +05:30
1 parent d751cca0f4
commit 6a002b900f
16 files changed
+241 -54

No files matched your search

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "App_RoutingForms_Form" ADD COLUMN "settings" JSONB;
+2
View File
@@ -518,6 +518,8 @@ model App_RoutingForms_Form {
userId Int
responses App_RoutingForms_FormResponse[]
disabled Boolean @default(false)
/// @zod.custom(imports.RoutingFormSettings)
settings Json?
}
model App_RoutingForms_FormResponse {
+6
View File
@@ -213,6 +213,12 @@ export const successRedirectUrl = z
])
.optional();
export const RoutingFormSettings = z
.object({
emailOwnerOnSubmission: z.boolean(),
})
.nullable();
export type ZodDenullish<T extends ZodTypeAny> = T extends ZodNullable<infer U> | ZodOptional<infer U>
? ZodDenullish<U>
: T;