Skip to content

Commit

Permalink
fix: opmc with revalidate path (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
pom421 authored Nov 23, 2023
1 parent 65d2b31 commit 5bb43e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { DeclarationSpecificationError } from "@common/core-domain/domain/specif
import { type UpdateOpMcDTO } from "@common/core-domain/dtos/UpdateOpMcDTO";
import { type ServerActionResponse } from "@common/utils/next";
import assert from "assert";
import { revalidatePath } from "next/cache";
import { getServerSession } from "next-auth";

export async function getDeclarationOpmc(siren: string, year: number) {
Expand Down Expand Up @@ -69,7 +68,8 @@ export async function updateDeclarationOpmc({
email,
});

revalidatePath(`/index-egapro/declaration/${siren}/${year}/pdf`);
// Note: [revalidatePath bug](https://github.com/vercel/next.js/issues/49387). Try to reactivate it when it will be fixed in Next (it seems to be fixed in Next 14).
// revalidatePath(`/index-egapro/declaration/${siren}/${year}/pdf`);

return {
ok: true,
Expand Down

0 comments on commit 5bb43e9

Please sign in to comment.