Skip to content

Commit

Permalink
refactor: 불필요한 조회 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
delphox60 committed Aug 22, 2024
1 parent 9bb3a51 commit 79daf42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/db/schema/invitations.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79daf42

Please sign in to comment.