From 79daf425f1830903263af5cf982a26fb857e34cb Mon Sep 17 00:00:00 2001 From: gibeom Date: Thu, 22 Aug 2024 21:56:46 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EC=A1=B0=ED=9A=8C=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/db/schema/invitations.query.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/db/schema/invitations.query.ts b/src/lib/db/schema/invitations.query.ts index 714a1e8..0ecfe1d 100644 --- a/src/lib/db/schema/invitations.query.ts +++ b/src/lib/db/schema/invitations.query.ts @@ -107,7 +107,9 @@ export async function updateInvitation(params: UpdateInvitationParams) { } try { - const existingInvitation = await getInvitationById(id); + if (eventUrl) { + const existingInvitation = await getInvitationById(id); + } await db .update(invitations)