Map to singular time unit
parent
a0b67bf2e3
commit
65d6f06cfe
|
@ -215,7 +215,6 @@ const BookingPage = (props: BookingPageProps) => {
|
|||
};
|
||||
|
||||
const bookEvent = (booking: BookingFormValues) => {
|
||||
console.log("🚀 ~ file: BookingPage.tsx ~ line 218 ~ bookEvent ~ booking", booking);
|
||||
telemetry.withJitsu((jitsu) =>
|
||||
jitsu.track(telemetryEventTypes.bookingConfirmed, collectPageParameters())
|
||||
);
|
||||
|
|
|
@ -31,9 +31,9 @@ const AttendeeReminderTypeForm: FC<Props> = (props) => {
|
|||
{ value: EventTypeAttendeeReminderMethod.SMS, label: t("SMS") },
|
||||
];
|
||||
const timeUnitOptions: OptionTypeBase[] = [
|
||||
{ value: EventTypeAttendeeReminderTimeUnit.MINUTES, label: t("minutes") },
|
||||
{ value: EventTypeAttendeeReminderTimeUnit.HOURS, label: t("hours") },
|
||||
{ value: EventTypeAttendeeReminderTimeUnit.DAYS, label: t("days") },
|
||||
{ value: EventTypeAttendeeReminderTimeUnit.MINUTE, label: t("minutes") },
|
||||
{ value: EventTypeAttendeeReminderTimeUnit.HOUR, label: t("hours") },
|
||||
{ value: EventTypeAttendeeReminderTimeUnit.DAY, label: t("days") },
|
||||
];
|
||||
const { selectedAttendeeReminder } = props;
|
||||
const defaultValues = selectedAttendeeReminder || { type: methodOptions[0].value };
|
||||
|
|
|
@ -312,9 +312,9 @@ enum EventTypeAttendeeReminderMethod {
|
|||
}
|
||||
|
||||
enum EventTypeAttendeeReminderTimeUnit {
|
||||
MINUTES @map("minutes")
|
||||
HOURS @map("hours")
|
||||
DAYS @map("days")
|
||||
MINUTE @map("minute")
|
||||
HOUR @map("hour")
|
||||
DAY @map("day")
|
||||
}
|
||||
|
||||
model EventTypeAttendeeReminder {
|
||||
|
@ -328,12 +328,12 @@ model EventTypeAttendeeReminder {
|
|||
|
||||
model AttendeeReminder {
|
||||
id Int @id @default(autoincrement())
|
||||
bookingId Int @unique
|
||||
booking Booking @relation(fields: [bookingId], references: [id])
|
||||
bookingUid String @unique
|
||||
booking Booking @relation(fields: [bookingUid], references: [uid])
|
||||
method String
|
||||
referenceId Int
|
||||
referenceId String
|
||||
scheduledFor DateTime
|
||||
sent Boolean
|
||||
scheduled Boolean
|
||||
}
|
||||
|
||||
model ResetPasswordRequest {
|
||||
|
|
Loading…
Reference in New Issue