From be3e3d4f040d9998de18a144c5cc8e14d0e18ee6 Mon Sep 17 00:00:00 2001 From: Bakhtiyor Ganijon Date: Wed, 25 Oct 2023 23:57:07 +0900 Subject: [PATCH] Fix issue --- app/api/posts/submit/route.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/api/posts/submit/route.ts b/app/api/posts/submit/route.ts index 021aa4bd..22c2cbb9 100644 --- a/app/api/posts/submit/route.ts +++ b/app/api/posts/submit/route.ts @@ -126,11 +126,6 @@ export async function POST(req: NextRequest) { url: url, subtitle: subtitle ? subtitle : null, authorId: Number(authorId), - author: { - connect: { - id: Number(authorId), - } - } } })