diff --git a/src/app/api/user/profile/route.ts b/src/app/api/user/profile/route.ts index b080cd8f..3390dc50 100644 --- a/src/app/api/user/profile/route.ts +++ b/src/app/api/user/profile/route.ts @@ -1,5 +1,6 @@ import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; +import { Prisma } from "@prisma/client"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; @@ -66,7 +67,7 @@ export async function PATCH(request: NextRequest) { username, avatar: avatar || null, bio: bio || null, - customLinks: customLinks && customLinks.length > 0 ? customLinks : null, + customLinks: customLinks && customLinks.length > 0 ? customLinks : Prisma.DbNull, }, select: { id: true, diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index 1adc8da9..e9fff5cb 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -5,6 +5,7 @@ import { db } from "@/lib/db"; import config from "@/../prompts.config"; import { ProfileForm } from "@/components/settings/profile-form"; import { ApiKeySettings } from "@/components/settings/api-key-settings"; +import type { CustomLink } from "@/components/user/profile-links"; export default async function SettingsPage() { const session = await auth(); @@ -44,7 +45,13 @@ export default async function SettingsPage() {
- + {config.features.mcp !== false && (