From b2a95fd4d93d3fa59f5a2e11dc27115b3ca5de40 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sun, 12 Jan 2025 00:19:48 +1100 Subject: [PATCH] Fix build --- app/(api)/api/calendar/[ownerId]/[projectId]/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(api)/api/calendar/[ownerId]/[projectId]/route.ts b/app/(api)/api/calendar/[ownerId]/[projectId]/route.ts index b4d4e5b..c2bf2b7 100644 --- a/app/(api)/api/calendar/[ownerId]/[projectId]/route.ts +++ b/app/(api)/api/calendar/[ownerId]/[projectId]/route.ts @@ -1,5 +1,5 @@ import { calendarEvent, project, task, taskList } from "@/drizzle/schema"; -import { getUser } from "@/lib/ops/auth"; +import { type UserCustomData, getUser } from "@/lib/ops/auth"; import { getDatabaseForOwner } from "@/lib/utils/useDatabase"; import { and, desc, eq, lte } from "drizzle-orm"; import ical, { ICalCalendarMethod } from "ical-generator"; @@ -22,8 +22,8 @@ export async function GET( const userId = searchParams.get("userId"); if (userId) { const user = await getUser(userId); - if (user.customData?.timezone) { - timezone = user.customData.timezone; + if ((user.customData as UserCustomData)?.timezone) { + timezone = (user.customData as UserCustomData).timezone; } }