Map to singular time unit

docs/contribute-to-app-store
Joe Au-Yeung 2022-03-10 14:31:15 -05:00
parent a0b67bf2e3
commit 65d6f06cfe
3 changed files with 10 additions and 11 deletions

View File

@ -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())
);

View File

@ -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 };

View File

@ -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 {