Skip to content

Commit

Permalink
fix: invitation_id 기반 get
Browse files Browse the repository at this point in the history
  • Loading branch information
Gukhee Jo committed Aug 22, 2024
1 parent 2df03a2 commit d96958c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/db/schema/invitation_response.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit d96958c

Please sign in to comment.