From 4c9d4d79725b81493d453fda578382886138b224 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Fri, 14 Apr 2023 14:03:24 -0400 Subject: [PATCH] refactor: remove unnecessary or operation (#8274) --- packages/app-store/apps.browser.generated.tsx | 1 + packages/app-store/apps.keys-schemas.generated.ts | 1 + packages/app-store/apps.metadata.generated.ts | 1 + packages/app-store/apps.schemas.generated.ts | 1 + packages/trpc/server/routers/viewer/bookings.tsx | 10 +--------- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/app-store/apps.browser.generated.tsx b/packages/app-store/apps.browser.generated.tsx index 356dde6f20..d483e35122 100644 --- a/packages/app-store/apps.browser.generated.tsx +++ b/packages/app-store/apps.browser.generated.tsx @@ -3,6 +3,7 @@ Don't modify this file manually. **/ import dynamic from "next/dynamic"; + export const InstallAppButtonMap = { exchange2013calendar: dynamic(() => import("./exchange2013calendar/components/InstallAppButton")), exchange2016calendar: dynamic(() => import("./exchange2016calendar/components/InstallAppButton")), diff --git a/packages/app-store/apps.keys-schemas.generated.ts b/packages/app-store/apps.keys-schemas.generated.ts index b22123b2d0..403584009b 100644 --- a/packages/app-store/apps.keys-schemas.generated.ts +++ b/packages/app-store/apps.keys-schemas.generated.ts @@ -25,6 +25,7 @@ import { appKeysSchema as vital_zod_ts } from "./vital/zod"; import { appKeysSchema as wordpress_zod_ts } from "./wordpress/zod"; import { appKeysSchema as zapier_zod_ts } from "./zapier/zod"; import { appKeysSchema as zoomvideo_zod_ts } from "./zoomvideo/zod"; + export const appKeysSchemas = { dailyvideo: dailyvideo_zod_ts, fathom: fathom_zod_ts, diff --git a/packages/app-store/apps.metadata.generated.ts b/packages/app-store/apps.metadata.generated.ts index 7ddf76a476..f0da2045b3 100644 --- a/packages/app-store/apps.metadata.generated.ts +++ b/packages/app-store/apps.metadata.generated.ts @@ -61,6 +61,7 @@ import wordpress_config_json from "./wordpress/config.json"; import { metadata as zapier__metadata_ts } from "./zapier/_metadata"; import zohocrm_config_json from "./zohocrm/config.json"; import { metadata as zoomvideo__metadata_ts } from "./zoomvideo/_metadata"; + export const appStoreMetadata = { amie: amie_config_json, applecalendar: applecalendar__metadata_ts, diff --git a/packages/app-store/apps.schemas.generated.ts b/packages/app-store/apps.schemas.generated.ts index c4a555de90..d9d55a918a 100644 --- a/packages/app-store/apps.schemas.generated.ts +++ b/packages/app-store/apps.schemas.generated.ts @@ -25,6 +25,7 @@ import { appDataSchema as vital_zod_ts } from "./vital/zod"; import { appDataSchema as wordpress_zod_ts } from "./wordpress/zod"; import { appDataSchema as zapier_zod_ts } from "./zapier/zod"; import { appDataSchema as zoomvideo_zod_ts } from "./zoomvideo/zod"; + export const appDataSchemas = { dailyvideo: dailyvideo_zod_ts, fathom: fathom_zod_ts, diff --git a/packages/trpc/server/routers/viewer/bookings.tsx b/packages/trpc/server/routers/viewer/bookings.tsx index 503ad557b4..51fd4afa38 100644 --- a/packages/trpc/server/routers/viewer/bookings.tsx +++ b/packages/trpc/server/routers/viewer/bookings.tsx @@ -145,15 +145,7 @@ export const bookingsRouter = router({ }, unconfirmed: { endTime: { gte: new Date() }, - OR: [ - { - recurringEventId: { not: null }, - status: { equals: BookingStatus.PENDING }, - }, - { - status: { equals: BookingStatus.PENDING }, - }, - ], + status: { equals: BookingStatus.PENDING }, }, }; const bookingListingOrderby: Record<