Skip to content

Commit

Permalink
fix: revalidatePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz committed Jul 21, 2024
1 parent 0c8c58d commit f4671a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client/app/lib/utils/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export async function getBlogPost(id: number): Promise<{ data: SinglePost; statu
});

const data = await res.json();
revalidatePath(queryPath);
revalidatePath(`/blog/posts/${id}`);
return { data: data, status: res.status };
}

0 comments on commit f4671a5

Please sign in to comment.