Skip to content

Commit

Permalink
fix: 수정 url 캐시 무효화 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
delphox60 committed Aug 22, 2024
1 parent 71a7c4b commit 9bb3a51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/db/schema/invitations.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export async function updateInvitation(params: UpdateInvitationParams) {

if (eventUrl && eventUrl !== existingInvitation.eventUrl) {
revalidatePath(`/i/${eventUrl}`);
revalidatePath(`/i/${eventUrl}/edit`);
revalidatePath(`/i/${existingInvitation.eventUrl}`);
revalidatePath(`/i/${existingInvitation.eventUrl}/edit`);
} else {
revalidatePath(`/i/${existingInvitation.eventUrl}`);
}
Expand Down

0 comments on commit 9bb3a51

Please sign in to comment.