Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunkomath committed Jan 11, 2025
1 parent 012add9 commit b2a95fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/(api)/api/calendar/[ownerId]/[projectId]/route.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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;
}
}

Expand Down

0 comments on commit b2a95fd

Please sign in to comment.