From d96958c1e35588b6c753d57de53e2a919a008d5e Mon Sep 17 00:00:00 2001 From: Gukhee Jo Date: Thu, 22 Aug 2024 21:39:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20invitation=5Fid=20=EA=B8=B0=EB=B0=98=20g?= =?UTF-8?q?et?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/db/schema/invitation_response.query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/db/schema/invitation_response.query.ts b/src/lib/db/schema/invitation_response.query.ts index 3d106d5..b073112 100644 --- a/src/lib/db/schema/invitation_response.query.ts +++ b/src/lib/db/schema/invitation_response.query.ts @@ -18,11 +18,11 @@ export async function getAllInvitationResponses() { return await db.select().from(invitationResponses); } -export async function getInvitationResponseById(id: InvitationResponse["id"]) { +export async function getInvitationResponseById(invitation_id: InvitationResponse["invitation_id"]) { const responses = await db .select() .from(invitationResponses) - .where(eq(invitationResponses.id, id)); + .where(eq(invitationResponses.invitation_id, invitation_id)); return responses[0]; }