diff --git a/src/server/api/routers/admin.ts b/src/server/api/routers/admin.ts index 4fc849c..7a8163c 100644 --- a/src/server/api/routers/admin.ts +++ b/src/server/api/routers/admin.ts @@ -5,7 +5,7 @@ import { club } from '@src/server/db/schema/club'; import { userMetadataToClubs } from '@src/server/db/schema/users'; import { type DateRange } from 'react-day-picker'; import { admin, carousel } from '@src/server/db/schema/admin'; -import role from '@src/models/role'; + function isDateRange(value: unknown): value is DateRange { return Boolean(value && typeof value === 'object' && 'from' in value); diff --git a/src/utils/formSchemas.ts b/src/utils/formSchemas.ts index 988a51b..bffa824 100644 --- a/src/utils/formSchemas.ts +++ b/src/utils/formSchemas.ts @@ -1,5 +1,4 @@ -import { selectContact } from '@src/server/db/models'; -import { admin } from '@src/server/db/schema/admin'; + import { z } from 'zod'; import { contactSchema } from './contact';