Skip to content

Commit

Permalink
Merge pull request #140 from TripInfoWeb/dev_informations
Browse files Browse the repository at this point in the history
Fix: 정보 삭제 후 cache 무효화 적용
  • Loading branch information
HyunJinNo authored Jul 27, 2024
2 parents 4f793c5 + a3ea32a commit b2f9737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/informations/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function DELETE(
throw new Error("Internal Server Error");
}

revalidatePath("/informations/list");
revalidatePath("/informations", "layout");
return response;
} catch (e) {
return new Response(JSON.stringify({ error: "Failed to delete data." }), {
Expand Down

0 comments on commit b2f9737

Please sign in to comment.