Add checkbox that defines if SMS reminder phone number should be required (#5047)

* add phone number required checkbox

* make input required only if numberRequired is true

* fix error that smsReminderNumber is null

* code clean up

* fix typo

* save no input as null

* fix code change

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: alannnc <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-10-18 12:47:15 +00:00
1 parent 431e4224fe
commit 95e3f55f26
10 files changed
+62 -14

No files matched your search

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "WorkflowStep" ADD COLUMN "numberRequired" BOOLEAN;
+1
View File
@@ -565,6 +565,7 @@ model WorkflowStep {
emailSubject String?
template WorkflowTemplates @default(REMINDER)
workflowReminders WorkflowReminder[]
numberRequired Boolean?
}
model Workflow {